Skip to content

Commit 6089cff

Browse files
committed
Cleanup some flake8 warnings and pytest warnings
1 parent d610166 commit 6089cff

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

graphene_django/filter/tests/test_fields.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ class context(object):
183183
}
184184
"""
185185
schema = Schema(query=Query)
186-
result = schema.execute(query, context_value=context())
186+
result = schema.execute(query, context=context())
187187
assert not result.errors
188188

189189
assert len(result.data["contextArticles"]["edges"]) == 1
@@ -462,15 +462,15 @@ class Meta:
462462
class Query(ObjectType):
463463
all_reporters = DjangoFilterConnectionField(ReporterFilterNode)
464464

465-
r1 = Reporter.objects.create(
465+
Reporter.objects.create(
466466
first_name="A test user", last_name="Last Name", email="test1@test.com"
467467
)
468-
r2 = Reporter.objects.create(
468+
Reporter.objects.create(
469469
first_name="Other test user",
470470
last_name="Other Last Name",
471471
email="test2@test.com",
472472
)
473-
r3 = Reporter.objects.create(
473+
Reporter.objects.create(
474474
first_name="Random", last_name="RandomLast", email="random@test.com"
475475
)
476476

@@ -638,7 +638,7 @@ def resolve_all_reporters(self, info, **args):
638638
Reporter.objects.create(
639639
first_name="Bob", last_name="Doe", email="bobdoe@example.com", a_choice=2
640640
)
641-
r = Reporter.objects.create(
641+
Reporter.objects.create(
642642
first_name="John", last_name="Doe", email="johndoe@example.com", a_choice=1
643643
)
644644

@@ -684,7 +684,7 @@ def resolve_all_reporters(self, info, reverse_order=False, **args):
684684
return reporters
685685

686686
Reporter.objects.create(first_name="b")
687-
r = Reporter.objects.create(first_name="a")
687+
Reporter.objects.create(first_name="a")
688688

689689
schema = Schema(query=Query)
690690
query = """

0 commit comments

Comments
 (0)