4
4
from typing import Any , AsyncGenerator , NamedTuple
5
5
6
6
import pytest
7
+
7
8
from graphql .error import GraphQLError
8
9
from graphql .execution import (
9
10
ExecutionResult ,
@@ -333,7 +334,7 @@ def can_print_deferred_fragment_record():
333
334
"path=['bar'], label='foo', parent_context, data)"
334
335
)
335
336
336
- @pytest .mark .asyncio ()
337
+ @pytest .mark .asyncio
337
338
async def can_defer_fragments_containing_scalar_types ():
338
339
document = parse (
339
340
"""
@@ -358,7 +359,7 @@ async def can_defer_fragments_containing_scalar_types():
358
359
},
359
360
]
360
361
361
- @pytest .mark .asyncio ()
362
+ @pytest .mark .asyncio
362
363
async def can_disable_defer_using_if_argument ():
363
364
document = parse (
364
365
"""
@@ -384,7 +385,7 @@ async def can_disable_defer_using_if_argument():
384
385
},
385
386
}
386
387
387
- @pytest .mark .asyncio ()
388
+ @pytest .mark .asyncio
388
389
async def does_not_disable_defer_with_null_if_argument ():
389
390
document = parse (
390
391
"""
@@ -409,7 +410,7 @@ async def does_not_disable_defer_with_null_if_argument():
409
410
},
410
411
]
411
412
412
- @pytest .mark .asyncio ()
413
+ @pytest .mark .asyncio
413
414
async def throws_an_error_for_defer_directive_with_non_string_label ():
414
415
document = parse (
415
416
"""
@@ -430,7 +431,7 @@ async def throws_an_error_for_defer_directive_with_non_string_label():
430
431
],
431
432
}
432
433
433
- @pytest .mark .asyncio ()
434
+ @pytest .mark .asyncio
434
435
async def can_defer_fragments_on_the_top_level_query_field ():
435
436
document = parse (
436
437
"""
@@ -456,7 +457,7 @@ async def can_defer_fragments_on_the_top_level_query_field():
456
457
},
457
458
]
458
459
459
- @pytest .mark .asyncio ()
460
+ @pytest .mark .asyncio
460
461
async def can_defer_fragments_with_errors_on_the_top_level_query_field ():
461
462
document = parse (
462
463
"""
@@ -493,7 +494,7 @@ async def can_defer_fragments_with_errors_on_the_top_level_query_field():
493
494
},
494
495
]
495
496
496
- @pytest .mark .asyncio ()
497
+ @pytest .mark .asyncio
497
498
async def can_defer_a_fragment_within_an_already_deferred_fragment ():
498
499
document = parse (
499
500
"""
@@ -540,7 +541,7 @@ async def can_defer_a_fragment_within_an_already_deferred_fragment():
540
541
},
541
542
]
542
543
543
- @pytest .mark .asyncio ()
544
+ @pytest .mark .asyncio
544
545
async def can_defer_a_fragment_that_is_also_not_deferred_with_deferred_first ():
545
546
document = parse (
546
547
"""
@@ -571,7 +572,7 @@ async def can_defer_a_fragment_that_is_also_not_deferred_with_deferred_first():
571
572
},
572
573
]
573
574
574
- @pytest .mark .asyncio ()
575
+ @pytest .mark .asyncio
575
576
async def can_defer_a_fragment_that_is_also_not_deferred_with_non_deferred_first ():
576
577
document = parse (
577
578
"""
@@ -602,7 +603,7 @@ async def can_defer_a_fragment_that_is_also_not_deferred_with_non_deferred_first
602
603
},
603
604
]
604
605
605
- @pytest .mark .asyncio ()
606
+ @pytest .mark .asyncio
606
607
async def can_defer_an_inline_fragment ():
607
608
document = parse (
608
609
"""
@@ -632,7 +633,7 @@ async def can_defer_an_inline_fragment():
632
633
},
633
634
]
634
635
635
- @pytest .mark .asyncio ()
636
+ @pytest .mark .asyncio
636
637
async def handles_errors_thrown_in_deferred_fragments ():
637
638
document = parse (
638
639
"""
@@ -669,7 +670,7 @@ async def handles_errors_thrown_in_deferred_fragments():
669
670
},
670
671
]
671
672
672
- @pytest .mark .asyncio ()
673
+ @pytest .mark .asyncio
673
674
async def handles_non_nullable_errors_thrown_in_deferred_fragments ():
674
675
document = parse (
675
676
"""
@@ -709,7 +710,7 @@ async def handles_non_nullable_errors_thrown_in_deferred_fragments():
709
710
},
710
711
]
711
712
712
- @pytest .mark .asyncio ()
713
+ @pytest .mark .asyncio
713
714
async def handles_non_nullable_errors_thrown_outside_deferred_fragments ():
714
715
document = parse (
715
716
"""
@@ -740,7 +741,7 @@ async def handles_non_nullable_errors_thrown_outside_deferred_fragments():
740
741
],
741
742
}
742
743
743
- @pytest .mark .asyncio ()
744
+ @pytest .mark .asyncio
744
745
async def handles_async_non_nullable_errors_thrown_in_deferred_fragments ():
745
746
document = parse (
746
747
"""
@@ -780,7 +781,7 @@ async def handles_async_non_nullable_errors_thrown_in_deferred_fragments():
780
781
},
781
782
]
782
783
783
- @pytest .mark .asyncio ()
784
+ @pytest .mark .asyncio
784
785
async def returns_payloads_in_correct_order ():
785
786
document = parse (
786
787
"""
@@ -833,7 +834,7 @@ async def returns_payloads_in_correct_order():
833
834
},
834
835
]
835
836
836
- @pytest .mark .asyncio ()
837
+ @pytest .mark .asyncio
837
838
async def returns_payloads_from_synchronous_data_in_correct_order ():
838
839
document = parse (
839
840
"""
@@ -886,7 +887,7 @@ async def returns_payloads_from_synchronous_data_in_correct_order():
886
887
},
887
888
]
888
889
889
- @pytest .mark .asyncio ()
890
+ @pytest .mark .asyncio
890
891
async def filters_deferred_payloads_when_list_item_from_async_iterable_nulled ():
891
892
document = parse (
892
893
"""
@@ -920,7 +921,7 @@ async def filters_deferred_payloads_when_list_item_from_async_iterable_nulled():
920
921
],
921
922
}
922
923
923
- @pytest .mark .asyncio ()
924
+ @pytest .mark .asyncio
924
925
async def original_execute_function_throws_error_if_deferred_and_all_is_sync ():
925
926
document = parse (
926
927
"""
@@ -938,7 +939,7 @@ async def original_execute_function_throws_error_if_deferred_and_all_is_sync():
938
939
" multiple payloads (due to @defer or @stream directive)"
939
940
)
940
941
941
- @pytest .mark .asyncio ()
942
+ @pytest .mark .asyncio
942
943
async def original_execute_function_throws_error_if_deferred_and_not_all_is_sync ():
943
944
document = parse (
944
945
"""
0 commit comments