Skip to content

Commit e48d160

Browse files
committed
Remove unnecessary filterwarnings
1 parent 584aa99 commit e48d160

File tree

5 files changed

+0
-11
lines changed

5 files changed

+0
-11
lines changed

tests/execution/test_executor.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,6 @@ async def asyncReturnErrorWithExtensions(self, _info):
521521
],
522522
)
523523

524-
@pytest.mark.filterwarnings("ignore:.* was never awaited:RuntimeWarning")
525524
def handles_sync_errors_combined_with_async_ones():
526525
is_async_resolver_finished = False
527526

@@ -618,7 +617,6 @@ def resolve_error(*_args):
618617
],
619618
)
620619

621-
@pytest.mark.filterwarnings("ignore:.* was never awaited:RuntimeWarning")
622620
def uses_the_inline_operation_if_no_operation_name_is_provided():
623621
schema = GraphQLSchema(
624622
GraphQLObjectType("Type", {"a": GraphQLField(GraphQLString)})
@@ -632,7 +630,6 @@ class Data:
632630
result = execute_sync(schema, document, Data())
633631
assert result == ({"a": "b"}, None)
634632

635-
@pytest.mark.filterwarnings("ignore:.* was never awaited:RuntimeWarning")
636633
def uses_the_only_operation_if_no_operation_name_is_provided():
637634
schema = GraphQLSchema(
638635
GraphQLObjectType("Type", {"a": GraphQLField(GraphQLString)})
@@ -646,7 +643,6 @@ class Data:
646643
result = execute_sync(schema, document, Data())
647644
assert result == ({"a": "b"}, None)
648645

649-
@pytest.mark.filterwarnings("ignore:.* was never awaited:RuntimeWarning")
650646
def uses_the_named_operation_if_operation_name_is_provided():
651647
schema = GraphQLSchema(
652648
GraphQLObjectType("Type", {"a": GraphQLField(GraphQLString)})

tests/execution/test_lists.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ def accepts_a_tuple_as_a_list_value():
5050
result = _complete(list_field)
5151
assert result == ({"listField": list(list_field)}, None)
5252

53-
@pytest.mark.filterwarnings("ignore:.* was never awaited:RuntimeWarning")
5453
def accepts_a_set_as_a_list_value():
5554
# Note that sets are not ordered in Python.
5655
list_field = {"apple", "banana", "coconut"}

tests/execution/test_stream.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,6 @@ async def can_disable_stream_using_if_argument():
337337
assert result == {"data": {"scalarList": ["apple", "banana", "coconut"]}}
338338

339339
@pytest.mark.asyncio
340-
@pytest.mark.filterwarnings("ignore:.* was never awaited:RuntimeWarning")
341340
async def does_not_disable_stream_with_null_if_argument():
342341
document = parse(
343342
"query ($shouldStream: Boolean)"
@@ -1560,7 +1559,6 @@ async def friend_list(_info):
15601559
]
15611560

15621561
@pytest.mark.asyncio
1563-
@pytest.mark.filterwarnings("ignore:.* was never awaited:RuntimeWarning")
15641562
async def filters_stream_payloads_that_are_nulled_in_a_deferred_payload():
15651563
document = parse(
15661564
"""
@@ -1628,7 +1626,6 @@ async def friend_list(_info):
16281626
]
16291627

16301628
@pytest.mark.asyncio
1631-
@pytest.mark.filterwarnings("ignore:.* was never awaited:RuntimeWarning")
16321629
async def filters_defer_payloads_that_are_nulled_in_a_stream_response():
16331630
document = parse(
16341631
"""

tests/execution/test_subscribe.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,6 @@ async def should_pass_through_unexpected_errors_thrown_in_subscribe():
377377
subscribe_with_bad_args(schema=schema, document={}) # type: ignore
378378

379379
@pytest.mark.asyncio
380-
@pytest.mark.filterwarnings("ignore:.* was never awaited:RuntimeWarning")
381380
async def throws_an_error_if_subscribe_does_not_return_an_iterator():
382381
expected_result = (
383382
None,

tests/execution/test_sync.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ async def throws_if_encountering_async_operation_without_check_sync():
114114
cleanup()
115115

116116
@pytest.mark.asyncio
117-
@pytest.mark.filterwarnings("ignore:.* was never awaited:RuntimeWarning")
118117
async def throws_if_encountering_async_iterable_execution_with_check_sync():
119118
doc = """
120119
query Example {
@@ -134,7 +133,6 @@ async def throws_if_encountering_async_iterable_execution_with_check_sync():
134133
cleanup()
135134

136135
@pytest.mark.asyncio
137-
@pytest.mark.filterwarnings("ignore:.* was never awaited:RuntimeWarning")
138136
async def throws_if_encountering_async_iterable_execution_without_check_sync():
139137
doc = """
140138
query Example {

0 commit comments

Comments
 (0)