mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-04-13 05:34:20 +03:00
updates tests
This commit is contained in:
parent
848536ee3a
commit
2659d67fd0
|
@ -156,8 +156,6 @@ class TestDjangoListField:
|
|||
class Query(ObjectType):
|
||||
reporters = DjangoListField(Reporter)
|
||||
|
||||
@staticmethod
|
||||
@sync_to_async
|
||||
def resolve_reporters(_, info):
|
||||
return ReporterModel.objects.filter(first_name="Tara")
|
||||
|
||||
|
@ -411,8 +409,6 @@ class TestDjangoListField:
|
|||
class Query(ObjectType):
|
||||
reporters = DjangoListField(Reporter)
|
||||
|
||||
@staticmethod
|
||||
@sync_to_async
|
||||
def resolve_reporters(_, info):
|
||||
return [ReporterModel.objects.get(first_name="Debra")]
|
||||
|
||||
|
@ -565,7 +561,6 @@ class TestDjangoListField:
|
|||
article_count__gt=0
|
||||
)
|
||||
|
||||
@sync_to_async
|
||||
def resolve_reporters(_, info):
|
||||
return [ReporterModel.objects.get(first_name="Debra")]
|
||||
|
||||
|
|
|
@ -1007,8 +1007,6 @@ def test_should_query_dataloader_fields_async():
|
|||
|
||||
articles = DjangoConnectionField(ArticleType)
|
||||
|
||||
@staticmethod
|
||||
@sync_to_async
|
||||
def resolve_articles(self, info, **args):
|
||||
return article_loader.load(self.id).get()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user