Skip to content

Commit 47addbd

Browse files
committed
Fix the unit tests to be clear
1 parent 3e5b361 commit 47addbd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_graphql_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ def test_execute_query_with_headers(self, post_mock):
8888
headers={"Content-Type": "application/json", "Existing": "123",},
8989
)
9090
query = ""
91-
client.execute(query=query, headers={"Existing": "123", "New": "foo"})
91+
client.execute(query=query, headers={"Existing": "456", "New": "foo"})
9292

9393
post_mock.assert_called_once_with(
9494
"http://www.test-api.com/",
9595
json={"query": query},
9696
headers={
9797
"Content-Type": "application/json",
98-
"Existing": "123",
98+
"Existing": "456",
9999
"New": "foo",
100100
},
101101
)
@@ -190,14 +190,14 @@ async def test_execute_query_with_headers(self, mock_post):
190190
)
191191
query = ""
192192

193-
await client.execute_async("", headers={"Existing": "123", "New": "foo"})
193+
await client.execute_async("", headers={"Existing": "456", "New": "foo"})
194194

195195
mock_post.assert_called_once_with(
196196
"http://www.test-api.com/",
197197
json={"query": query},
198198
headers={
199199
"Content-Type": "application/json",
200-
"Existing": "123",
200+
"Existing": "456",
201201
"New": "foo",
202202
},
203203
)

0 commit comments

Comments
 (0)