@@ -81,11 +81,8 @@ def test_no_schema_exception():
81
81
def test_execute_result_error ():
82
82
83
83
client = Client (
84
- transport = RequestsHTTPTransport (
85
- url = "https://countries.trevorblades.com/" ,
86
- use_json = True ,
87
- headers = {"Content-type" : "application/json" },
88
- ),
84
+ retries = expected_retries ,
85
+ transport = RequestsHTTPTransport (url = "https://countries.trevorblades.com/" ,),
89
86
)
90
87
91
88
failing_query = gql (
@@ -110,6 +107,7 @@ def test_http_transport_raise_for_status_error(http_transport_query):
110
107
client = Client (
111
108
transport = RequestsHTTPTransport (
112
109
url = "https://countries.trevorblades.com/" ,
110
+ use_json = False ,
113
111
headers = {"Content-type" : "application/json" },
114
112
)
115
113
)
@@ -123,10 +121,7 @@ def test_http_transport_raise_for_status_error(http_transport_query):
123
121
def test_http_transport_verify_error (http_transport_query ):
124
122
client = Client (
125
123
transport = RequestsHTTPTransport (
126
- url = "https://countries.trevorblades.com/" ,
127
- use_json = True ,
128
- headers = {"Content-type" : "application/json" },
129
- verify = False ,
124
+ url = "https://countries.trevorblades.com/" , verify = False ,
130
125
)
131
126
)
132
127
with pytest .warns (Warning ) as record :
@@ -139,10 +134,7 @@ def test_http_transport_verify_error(http_transport_query):
139
134
def test_http_transport_specify_method_valid (http_transport_query ):
140
135
client = Client (
141
136
transport = RequestsHTTPTransport (
142
- url = "https://countries.trevorblades.com/" ,
143
- use_json = True ,
144
- headers = {"Content-type" : "application/json" },
145
- method = "POST" ,
137
+ url = "https://countries.trevorblades.com/" , method = "POST" ,
146
138
)
147
139
)
148
140
@@ -154,10 +146,7 @@ def test_http_transport_specify_method_valid(http_transport_query):
154
146
def test_http_transport_specify_method_invalid (http_transport_query ):
155
147
client = Client (
156
148
transport = RequestsHTTPTransport (
157
- url = "https://countries.trevorblades.com/" ,
158
- use_json = True ,
159
- headers = {"Content-type" : "application/json" },
160
- method = "GET" ,
149
+ url = "https://countries.trevorblades.com/" , method = "GET" ,
161
150
)
162
151
)
163
152
0 commit comments