@@ -35,9 +35,7 @@ def test_empty_queries_returns_false(self) -> None:
3535 report = GraphQLQueryReport (queries = [])
3636 assert report .only_has_unique_targets is False
3737
38- def test_query_without_filter_returns_false (
39- self , branch_schema_with_tag : BranchSchema
40- ) -> None :
38+ def test_query_without_filter_returns_false (self , branch_schema_with_tag : BranchSchema ) -> None :
4139 """A query without any filter should return False (multi-target)."""
4240 query = """
4341 query BuiltinTag {
@@ -55,9 +53,7 @@ def test_query_without_filter_returns_false(
5553 assert report .top_level_kinds == ["BuiltinTag" ]
5654 assert report .only_has_unique_targets is False
5755
58- def test_query_with_required_unique_filter_returns_true (
59- self , branch_schema_with_tag : BranchSchema
60- ) -> None :
56+ def test_query_with_required_unique_filter_returns_true (self , branch_schema_with_tag : BranchSchema ) -> None :
6157 """A query with a required filter on a unique field should return True."""
6258 query = """
6359 query BuiltinTag($name: String!) {
@@ -75,9 +71,7 @@ def test_query_with_required_unique_filter_returns_true(
7571 assert report .top_level_kinds == ["BuiltinTag" ]
7672 assert report .only_has_unique_targets is True
7773
78- def test_query_with_optional_unique_filter_returns_false (
79- self , branch_schema_with_tag : BranchSchema
80- ) -> None :
74+ def test_query_with_optional_unique_filter_returns_false (self , branch_schema_with_tag : BranchSchema ) -> None :
8175 """A query with an optional filter should return False (variable might not be provided)."""
8276 query = """
8377 query BuiltinTag($name: String) {
@@ -95,9 +89,7 @@ def test_query_with_optional_unique_filter_returns_false(
9589 assert report .top_level_kinds == ["BuiltinTag" ]
9690 assert report .only_has_unique_targets is False
9791
98- def test_query_with_static_unique_filter_returns_true (
99- self , branch_schema_with_tag : BranchSchema
100- ) -> None :
92+ def test_query_with_static_unique_filter_returns_true (self , branch_schema_with_tag : BranchSchema ) -> None :
10193 """A query with a static (non-variable) filter on unique field should return True."""
10294 query = """
10395 query {
@@ -115,9 +107,7 @@ def test_query_with_static_unique_filter_returns_true(
115107 assert report .top_level_kinds == ["BuiltinTag" ]
116108 assert report .only_has_unique_targets is True
117109
118- def test_query_with_required_ids_filter_returns_true (
119- self , branch_schema_with_tag : BranchSchema
120- ) -> None :
110+ def test_query_with_required_ids_filter_returns_true (self , branch_schema_with_tag : BranchSchema ) -> None :
121111 """A query filtering by ids with a required variable should return True."""
122112 query = """
123113 query BuiltinTag($ids: [ID]!) {
@@ -144,9 +134,7 @@ def test_empty_queries_returns_empty_list(self) -> None:
144134 report = GraphQLQueryReport (queries = [])
145135 assert report .top_level_kinds == []
146136
147- def test_single_query_returns_kind (
148- self , branch_schema_with_tag : BranchSchema
149- ) -> None :
137+ def test_single_query_returns_kind (self , branch_schema_with_tag : BranchSchema ) -> None :
150138 """A single query should return its kind in top_level_kinds."""
151139 query = """
152140 query {
0 commit comments