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

Commit 1df9758

Browse files
committed
fix: address feedback
1 parent ca82586 commit 1df9758

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

graphql_api/types/test_results/test_results.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type TestResult {
77
avgDuration: Float!
88
lastDuration: Float!
99
totalFailCount: Int!
10+
totalFlakyFailCount: Int!
1011
totalSkipCount: Int!
1112
totalPassCount: Int!
12-
totalFlakyFailCount: Int!
1313
}

graphql_api/types/test_results/test_results.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ class TestDict(TypedDict):
1414
last_duration: float
1515
flake_rate: float
1616
total_fail_count: int
17+
total_flaky_fail_count: int
1718
total_skip_count: int
1819
total_pass_count: int
19-
total_flaky_fail_count: int
2020
computed_name: str | None
2121

2222

@@ -63,6 +63,11 @@ def resolve_total_fail_count(test: TestDict, _: GraphQLResolveInfo) -> int:
6363
return test["total_fail_count"]
6464

6565

66+
@test_result_bindable.field("totalFlakyFailCount")
67+
def resolve_total_flaky_fail_count(test: TestDict, _: GraphQLResolveInfo) -> int:
68+
return test["total_flaky_fail_count"]
69+
70+
6671
@test_result_bindable.field("totalSkipCount")
6772
def resolve_total_skip_count(test: TestDict, _: GraphQLResolveInfo) -> int:
6873
return test["total_skip_count"]
@@ -71,8 +76,3 @@ def resolve_total_skip_count(test: TestDict, _: GraphQLResolveInfo) -> int:
7176
@test_result_bindable.field("totalPassCount")
7277
def resolve_total_pass_count(test: TestDict, _: GraphQLResolveInfo) -> int:
7378
return test["total_pass_count"]
74-
75-
76-
@test_result_bindable.field("totalFlakyFailCount")
77-
def resolve_total_flaky_fail_count(test: TestDict, _: GraphQLResolveInfo) -> int:
78-
return test["total_flaky_fail_count"]

0 commit comments

Comments
 (0)