Skip to content

Commit 481b837

Browse files
committed
Fix tests after default for use_json changed in #16
1 parent 9f6e4e1 commit 481b837

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

tests/test_client.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,6 @@ def test_execute_result_error():
113113
retries=expected_retries,
114114
transport=RequestsHTTPTransport(
115115
url="https://countries.trevorblades.com/",
116-
use_json=True,
117-
headers={"Content-type": "application/json"},
118116
),
119117
)
120118

@@ -140,6 +138,7 @@ def test_http_transport_raise_for_status_error(http_transport_query):
140138
client = Client(
141139
transport=RequestsHTTPTransport(
142140
url="https://countries.trevorblades.com/",
141+
use_json=False,
143142
headers={"Content-type": "application/json"},
144143
)
145144
)
@@ -154,8 +153,6 @@ def test_http_transport_verify_error(http_transport_query):
154153
client = Client(
155154
transport=RequestsHTTPTransport(
156155
url="https://countries.trevorblades.com/",
157-
use_json=True,
158-
headers={"Content-type": "application/json"},
159156
verify=False,
160157
)
161158
)
@@ -170,8 +167,6 @@ def test_http_transport_specify_method_valid(http_transport_query):
170167
client = Client(
171168
transport=RequestsHTTPTransport(
172169
url="https://countries.trevorblades.com/",
173-
use_json=True,
174-
headers={"Content-type": "application/json"},
175170
method="POST",
176171
)
177172
)
@@ -185,8 +180,6 @@ def test_http_transport_specify_method_invalid(http_transport_query):
185180
client = Client(
186181
transport=RequestsHTTPTransport(
187182
url="https://countries.trevorblades.com/",
188-
use_json=True,
189-
headers={"Content-type": "application/json"},
190183
method="GET",
191184
)
192185
)

0 commit comments

Comments
 (0)