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

Commit 2c7c33a

Browse files
committed
fix: fix some errors that happened during the merge
1 parent eedcb63 commit 2c7c33a

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

graphql_api/types/test_results/test_results.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ def resolve_total_fail_count(test: TestResultsRow, _: GraphQLResolveInfo) -> int
4949

5050

5151
@test_result_bindable.field("totalFlakyFailCount")
52-
def resolve_total_flaky_fail_count(test: TestDict, _: GraphQLResolveInfo) -> int:
53-
return test["total_flaky_fail_count"]
52+
def resolve_total_flaky_fail_count(test: TestResultsRow, _: GraphQLResolveInfo) -> int:
53+
return test.total_flaky_fail_count
5454

5555

5656
@test_result_bindable.field("totalSkipCount")

utils/test_results.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def generate_base_query(
221221
222222
select * from (
223223
select
224-
COALESCE(rt.name, rt.computed_name) as name,
224+
COALESCE(rt.computed_name, rt.name) as name,
225225
results.*
226226
from
227227
(

utils/tests/unit/test_search_base_query.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ def row_factory(name: str, failure_rate: float):
77
return TestResultsRow(
88
test_id=name,
99
name=name,
10-
computed_name=name,
1110
failure_rate=failure_rate,
1211
flake_rate=0.0,
1312
updated_at=datetime.now(),

0 commit comments

Comments
 (0)