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 1
1
import asyncio
2
2
import json
3
+ import warnings
3
4
4
5
import graphql
5
6
import pytest
@@ -93,7 +94,13 @@ async def test_async_client_validation(
93
94
94
95
sample_transport = WebsocketsTransport (url = url )
95
96
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 :
97
104
98
105
variable_values = {"ep" : "JEDI" }
99
106
@@ -136,7 +143,13 @@ async def test_async_client_validation_invalid_query(
136
143
137
144
sample_transport = WebsocketsTransport (url = url )
138
145
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 :
140
153
141
154
variable_values = {"ep" : "JEDI" }
142
155
You can’t perform that action at this time.
0 commit comments