updates tests

This commit is contained in:
Josh Warwick 2023-05-16 20:19:35 +01:00
parent 848536ee3a
commit 2659d67fd0
2 changed files with 0 additions and 7 deletions

View File

@ -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")]

View File

@ -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()