Skip to content

Commit

Permalink
Check if query params in the string URL are also included in the fina…
Browse files Browse the repository at this point in the history
…l params
  • Loading branch information
blv-andreboechat authored and jairhenrique committed Jun 13, 2022
1 parent eb96c59 commit be1035f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/integration/test_aiohttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,13 @@ def test_post(tmpdir, scheme, body, caplog):


def test_params(tmpdir, scheme):
url = scheme + "://httpbin.org/get"
url = scheme + "://httpbin.org/get?d=d"
headers = {"Content-Type": "application/json"}
params = {"a": 1, "b": 2, "c": "c"}

with vcr.use_cassette(str(tmpdir.join("get.yaml"))) as cassette:
_, response_json = get(url, output="json", params=params, headers=headers)
assert response_json["args"] == {"a": "1", "b": "2", "c": "c", "d": "d"}

with vcr.use_cassette(str(tmpdir.join("get.yaml"))) as cassette:
_, cassette_response_json = get(url, output="json", params=params, headers=headers)
Expand Down

0 comments on commit be1035f

Please sign in to comment.