Skip to content

Commit 563d818

Browse files
committed
Filter warnings
1 parent 3685b13 commit 563d818

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/execution/test_executor.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,7 @@ async def asyncReturnErrorWithExtensions(self, _info):
566566
],
567567
)
568568

569+
@mark.filterwarnings("ignore:.* was never awaited:RuntimeWarning")
569570
def handles_sync_errors_combined_with_async_ones():
570571
is_async_resolver_finished = False
571572

@@ -616,6 +617,7 @@ async def async_resolver(_obj, _info):
616617
],
617618
)
618619

620+
@mark.filterwarnings("ignore:.* was never awaited:RuntimeWarning")
619621
def full_response_path_is_included_for_non_nullable_fields():
620622
def resolve_ok(*_args):
621623
return {}
@@ -665,6 +667,7 @@ def resolve_error(*_args):
665667
],
666668
)
667669

670+
@mark.filterwarnings("ignore:.* was never awaited:RuntimeWarning")
668671
def uses_the_inline_operation_if_no_operation_name_is_provided():
669672
schema = GraphQLSchema(
670673
GraphQLObjectType("Type", {"a": GraphQLField(GraphQLString)})
@@ -678,6 +681,7 @@ class Data:
678681
result = execute_sync(schema, document, Data())
679682
assert result == ({"a": "b"}, None)
680683

684+
@mark.filterwarnings("ignore:.* was never awaited:RuntimeWarning")
681685
def uses_the_only_operation_if_no_operation_name_is_provided():
682686
schema = GraphQLSchema(
683687
GraphQLObjectType("Type", {"a": GraphQLField(GraphQLString)})
@@ -691,6 +695,7 @@ class Data:
691695
result = execute_sync(schema, document, Data())
692696
assert result == ({"a": "b"}, None)
693697

698+
@mark.filterwarnings("ignore:.* was never awaited:RuntimeWarning")
694699
def uses_the_named_operation_if_operation_name_is_provided():
695700
schema = GraphQLSchema(
696701
GraphQLObjectType("Type", {"a": GraphQLField(GraphQLString)})

0 commit comments

Comments
 (0)