44from typing import Any , AsyncGenerator , NamedTuple
55
66import pytest
7+
78from graphql .error import GraphQLError
89from graphql .execution import (
910 ExecutionResult ,
@@ -333,7 +334,7 @@ def can_print_deferred_fragment_record():
333334 "path=['bar'], label='foo', parent_context, data)"
334335 )
335336
336- @pytest .mark .asyncio ()
337+ @pytest .mark .asyncio
337338 async def can_defer_fragments_containing_scalar_types ():
338339 document = parse (
339340 """
@@ -358,7 +359,7 @@ async def can_defer_fragments_containing_scalar_types():
358359 },
359360 ]
360361
361- @pytest .mark .asyncio ()
362+ @pytest .mark .asyncio
362363 async def can_disable_defer_using_if_argument ():
363364 document = parse (
364365 """
@@ -384,7 +385,7 @@ async def can_disable_defer_using_if_argument():
384385 },
385386 }
386387
387- @pytest .mark .asyncio ()
388+ @pytest .mark .asyncio
388389 async def does_not_disable_defer_with_null_if_argument ():
389390 document = parse (
390391 """
@@ -409,7 +410,7 @@ async def does_not_disable_defer_with_null_if_argument():
409410 },
410411 ]
411412
412- @pytest .mark .asyncio ()
413+ @pytest .mark .asyncio
413414 async def throws_an_error_for_defer_directive_with_non_string_label ():
414415 document = parse (
415416 """
@@ -430,7 +431,7 @@ async def throws_an_error_for_defer_directive_with_non_string_label():
430431 ],
431432 }
432433
433- @pytest .mark .asyncio ()
434+ @pytest .mark .asyncio
434435 async def can_defer_fragments_on_the_top_level_query_field ():
435436 document = parse (
436437 """
@@ -456,7 +457,7 @@ async def can_defer_fragments_on_the_top_level_query_field():
456457 },
457458 ]
458459
459- @pytest .mark .asyncio ()
460+ @pytest .mark .asyncio
460461 async def can_defer_fragments_with_errors_on_the_top_level_query_field ():
461462 document = parse (
462463 """
@@ -493,7 +494,7 @@ async def can_defer_fragments_with_errors_on_the_top_level_query_field():
493494 },
494495 ]
495496
496- @pytest .mark .asyncio ()
497+ @pytest .mark .asyncio
497498 async def can_defer_a_fragment_within_an_already_deferred_fragment ():
498499 document = parse (
499500 """
@@ -540,7 +541,7 @@ async def can_defer_a_fragment_within_an_already_deferred_fragment():
540541 },
541542 ]
542543
543- @pytest .mark .asyncio ()
544+ @pytest .mark .asyncio
544545 async def can_defer_a_fragment_that_is_also_not_deferred_with_deferred_first ():
545546 document = parse (
546547 """
@@ -571,7 +572,7 @@ async def can_defer_a_fragment_that_is_also_not_deferred_with_deferred_first():
571572 },
572573 ]
573574
574- @pytest .mark .asyncio ()
575+ @pytest .mark .asyncio
575576 async def can_defer_a_fragment_that_is_also_not_deferred_with_non_deferred_first ():
576577 document = parse (
577578 """
@@ -602,7 +603,7 @@ async def can_defer_a_fragment_that_is_also_not_deferred_with_non_deferred_first
602603 },
603604 ]
604605
605- @pytest .mark .asyncio ()
606+ @pytest .mark .asyncio
606607 async def can_defer_an_inline_fragment ():
607608 document = parse (
608609 """
@@ -632,7 +633,7 @@ async def can_defer_an_inline_fragment():
632633 },
633634 ]
634635
635- @pytest .mark .asyncio ()
636+ @pytest .mark .asyncio
636637 async def handles_errors_thrown_in_deferred_fragments ():
637638 document = parse (
638639 """
@@ -669,7 +670,7 @@ async def handles_errors_thrown_in_deferred_fragments():
669670 },
670671 ]
671672
672- @pytest .mark .asyncio ()
673+ @pytest .mark .asyncio
673674 async def handles_non_nullable_errors_thrown_in_deferred_fragments ():
674675 document = parse (
675676 """
@@ -709,7 +710,7 @@ async def handles_non_nullable_errors_thrown_in_deferred_fragments():
709710 },
710711 ]
711712
712- @pytest .mark .asyncio ()
713+ @pytest .mark .asyncio
713714 async def handles_non_nullable_errors_thrown_outside_deferred_fragments ():
714715 document = parse (
715716 """
@@ -740,7 +741,7 @@ async def handles_non_nullable_errors_thrown_outside_deferred_fragments():
740741 ],
741742 }
742743
743- @pytest .mark .asyncio ()
744+ @pytest .mark .asyncio
744745 async def handles_async_non_nullable_errors_thrown_in_deferred_fragments ():
745746 document = parse (
746747 """
@@ -780,7 +781,7 @@ async def handles_async_non_nullable_errors_thrown_in_deferred_fragments():
780781 },
781782 ]
782783
783- @pytest .mark .asyncio ()
784+ @pytest .mark .asyncio
784785 async def returns_payloads_in_correct_order ():
785786 document = parse (
786787 """
@@ -833,7 +834,7 @@ async def returns_payloads_in_correct_order():
833834 },
834835 ]
835836
836- @pytest .mark .asyncio ()
837+ @pytest .mark .asyncio
837838 async def returns_payloads_from_synchronous_data_in_correct_order ():
838839 document = parse (
839840 """
@@ -886,7 +887,7 @@ async def returns_payloads_from_synchronous_data_in_correct_order():
886887 },
887888 ]
888889
889- @pytest .mark .asyncio ()
890+ @pytest .mark .asyncio
890891 async def filters_deferred_payloads_when_list_item_from_async_iterable_nulled ():
891892 document = parse (
892893 """
@@ -920,7 +921,7 @@ async def filters_deferred_payloads_when_list_item_from_async_iterable_nulled():
920921 ],
921922 }
922923
923- @pytest .mark .asyncio ()
924+ @pytest .mark .asyncio
924925 async def original_execute_function_throws_error_if_deferred_and_all_is_sync ():
925926 document = parse (
926927 """
@@ -938,7 +939,7 @@ async def original_execute_function_throws_error_if_deferred_and_all_is_sync():
938939 " multiple payloads (due to @defer or @stream directive)"
939940 )
940941
941- @pytest .mark .asyncio ()
942+ @pytest .mark .asyncio
942943 async def original_execute_function_throws_error_if_deferred_and_not_all_is_sync ():
943944 document = parse (
944945 """
0 commit comments