Skip to content

Commit

Permalink
fix typing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
diesieben07 committed Dec 15, 2024
1 parent 4d5aded commit ed74cf5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/test_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1613,13 +1613,13 @@ 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).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).name, str(milestone1.id))
GlobalID(get_object_definition(MilestoneType, strict=True).name, str(milestone1.id))
)
milestone_id_2 = str(
GlobalID(get_object_definition(MilestoneType).name, str(milestone2.id))
GlobalID(get_object_definition(MilestoneType, strict=True).name, str(milestone2.id))
)

query = """\
Expand Down Expand Up @@ -1660,10 +1660,10 @@ 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).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).name, str(milestone.id))
GlobalID(get_object_definition(MilestoneType, strict=True).name, str(milestone.id))
)

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

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

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

milestone_id = str(
GlobalID(get_object_definition(MilestoneType).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 ed74cf5

Please sign in to comment.