Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 15, 2024
1 parent ed74cf5 commit 27c92b8
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions tests/test_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1613,13 +1613,19 @@ def test_prefetch_multi_field_single_optional(db, gql_client: GraphQLTestClient)
milestone2 = MilestoneFactory.create()

issue = IssueFactory.create(name="Foo", milestone=milestone1)
issue_id = str(GlobalID(get_object_definition(IssueType, strict=True).name, str(issue.id)))
issue_id = str(
GlobalID(get_object_definition(IssueType, strict=True).name, str(issue.id))
)

milestone_id_1 = str(
GlobalID(get_object_definition(MilestoneType, strict=True).name, str(milestone1.id))
GlobalID(
get_object_definition(MilestoneType, strict=True).name, str(milestone1.id)
)
)
milestone_id_2 = str(
GlobalID(get_object_definition(MilestoneType, strict=True).name, str(milestone2.id))
GlobalID(
get_object_definition(MilestoneType, strict=True).name, str(milestone2.id)
)
)

query = """\
Expand Down Expand Up @@ -1660,10 +1666,14 @@ def test_prefetch_multi_field_single_required(db, gql_client: GraphQLTestClient)
milestone = MilestoneFactory.create()

issue = IssueFactory.create(name="Foo", milestone=milestone)
issue_id = str(GlobalID(get_object_definition(IssueType, strict=True).name, str(issue.id)))
issue_id = str(
GlobalID(get_object_definition(IssueType, strict=True).name, str(issue.id))
)

milestone_id = str(
GlobalID(get_object_definition(MilestoneType, strict=True).name, str(milestone.id))
GlobalID(
get_object_definition(MilestoneType, strict=True).name, str(milestone.id)
)
)

query = """\
Expand Down Expand Up @@ -1696,7 +1706,9 @@ def test_prefetch_multi_field_single_required_missing(
milestone1 = MilestoneFactory.create()

milestone_id = str(
GlobalID(get_object_definition(MilestoneType, strict=True).name, str(milestone1.id))
GlobalID(
get_object_definition(MilestoneType, strict=True).name, str(milestone1.id)
)
)

query = """\
Expand Down Expand Up @@ -1731,7 +1743,9 @@ def test_prefetch_multi_field_single_required_multiple_returned(
milestone = MilestoneFactory.create()

milestone_id = str(
GlobalID(get_object_definition(MilestoneType, strict=True).name, str(milestone.id))
GlobalID(
get_object_definition(MilestoneType, strict=True).name, str(milestone.id)
)
)
IssueFactory.create(name="Foo", milestone=milestone)
IssueFactory.create(name="Bar", milestone=milestone)
Expand Down

0 comments on commit 27c92b8

Please # to comment.