File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 11import asyncio
22import json
3+ import warnings
34
45import graphql
56import pytest
@@ -93,7 +94,13 @@ async def test_async_client_validation(
9394
9495 sample_transport = WebsocketsTransport (url = url )
9596
96- async with Client (transport = sample_transport , ** client_params ) as session :
97+ with warnings .catch_warnings ():
98+ warnings .filterwarnings (
99+ "ignore" , message = "type_def is deprecated; use schema instead"
100+ )
101+ client = Client (transport = sample_transport , ** client_params )
102+
103+ async with client as session :
97104
98105 variable_values = {"ep" : "JEDI" }
99106
@@ -136,7 +143,13 @@ async def test_async_client_validation_invalid_query(
136143
137144 sample_transport = WebsocketsTransport (url = url )
138145
139- async with Client (transport = sample_transport , ** client_params ) as session :
146+ with warnings .catch_warnings ():
147+ warnings .filterwarnings (
148+ "ignore" , message = "type_def is deprecated; use schema instead"
149+ )
150+ client = Client (transport = sample_transport , ** client_params )
151+
152+ async with client as session :
140153
141154 variable_values = {"ep" : "JEDI" }
142155
You can’t perform that action at this time.
0 commit comments