Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit de2a6e7

Browse files
committed
fix failure rate percentage
1 parent 4e91830 commit de2a6e7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

api/public/v2/tests/test_test_results_view.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def test_list(self):
5353
"outcome": self.test_instances[0].outcome,
5454
"branch": self.test_instances[0].branch,
5555
"repoid": self.test_instances[0].repoid,
56-
"failure_rate": 0.0,
56+
"failure_rate": 1.0,
5757
},
5858
{
5959
"id": self.test_instances[1].id,
@@ -65,7 +65,7 @@ def test_list(self):
6565
"outcome": self.test_instances[1].outcome,
6666
"branch": self.test_instances[1].branch,
6767
"repoid": self.test_instances[1].repoid,
68-
"failure_rate": 0.0,
68+
"failure_rate": 1.0,
6969
},
7070
],
7171
"total_pages": 1,
@@ -97,7 +97,7 @@ def test_list_filters(self):
9797
"outcome": self.test_instances[0].outcome,
9898
"branch": self.test_instances[0].branch,
9999
"repoid": self.test_instances[0].repoid,
100-
"failure_rate": 0.0,
100+
"failure_rate": 1.0,
101101
},
102102
],
103103
"total_pages": 1,
@@ -128,7 +128,7 @@ def test_retrieve(self, get_repo_permissions):
128128
"outcome": self.test_instances[0].outcome,
129129
"branch": self.test_instances[0].branch,
130130
"repoid": self.test_instances[0].repoid,
131-
"failure_rate": 0.0,
131+
"failure_rate": 1.0,
132132
}
133133

134134
@patch("api.shared.permissions.RepositoryArtifactPermissions.has_permission")
@@ -230,5 +230,5 @@ def test_result_with_valid_super_token(
230230
"outcome": self.test_instances[0].outcome,
231231
"branch": self.test_instances[0].branch,
232232
"repoid": self.test_instances[0].repoid,
233-
"failure_rate": 0.0,
233+
"failure_rate": 1.0,
234234
}

0 commit comments

Comments
 (0)