From 27c92b88ff537ac5a4f3e17177413d3c8bc41314 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 15 Dec 2024 16:45:15 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_optimizer.py | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/tests/test_optimizer.py b/tests/test_optimizer.py index dc90ffab..c2274250 100644 --- a/tests/test_optimizer.py +++ b/tests/test_optimizer.py @@ -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 = """\ @@ -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 = """\ @@ -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 = """\ @@ -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)