@@ -709,7 +709,8 @@ class Query(graphene.ObjectType):
709
709
graphene_settings .RELAY_CONNECTION_ENFORCE_FIRST_OR_LAST = False
710
710
711
711
712
- def test_should_query_promise_connectionfields ():
712
+ @pytest .mark .asyncio
713
+ async def test_should_query_promise_connectionfields ():
713
714
from promise import Promise
714
715
715
716
class ReporterType (DjangoObjectType ):
@@ -738,7 +739,7 @@ def resolve_all_reporters(self, info, **args):
738
739
739
740
expected = {"allReporters" : {"edges" : [{"node" : {"id" : "UmVwb3J0ZXJUeXBlOjE=" }}]}}
740
741
741
- result = schema .execute (query )
742
+ result = await schema .execute_async (query )
742
743
assert not result .errors
743
744
assert result .data == expected
744
745
@@ -821,7 +822,8 @@ def resolve_all_reporters(self, info, **args):
821
822
assert result .data == expected
822
823
823
824
824
- def test_should_query_dataloader_fields ():
825
+ @pytest .mark .asyncio
826
+ async def test_should_query_dataloader_fields ():
825
827
from promise import Promise
826
828
from promise .dataloader import DataLoader
827
829
@@ -914,7 +916,7 @@ class Query(graphene.ObjectType):
914
916
}
915
917
}
916
918
917
- result = schema .execute (query )
919
+ result = await schema .execute_async (query )
918
920
assert not result .errors
919
921
assert result .data == expected
920
922
0 commit comments