Skip to content

Commit 140ad42

Browse files
committed
Fix test_should_preserve_prefetch_related
Connection resolvers have access to pagination arguments.
1 parent d6fd3fc commit 140ad42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphene_django/tests/test_query.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,7 @@ class Meta:
10831083
class Query(graphene.ObjectType):
10841084
films = DjangoConnectionField(FilmType)
10851085

1086-
def resolve_films(root, info):
1086+
def resolve_films(root, info, **args):
10871087
qs = Film.objects.prefetch_related("reporters")
10881088
return qs
10891089

@@ -1115,4 +1115,4 @@ def resolve_films(root, info):
11151115
schema = graphene.Schema(query=Query)
11161116
with django_assert_num_queries(3) as captured:
11171117
result = schema.execute(query)
1118-
assert not result.errors
1118+
assert not result.errors

0 commit comments

Comments
 (0)