From be1035fd5dafa79dce5aba3a50366040a67bcea9 Mon Sep 17 00:00:00 2001 From: Andre Ambrosio Boechat Date: Tue, 3 May 2022 13:51:49 -0300 Subject: [PATCH] Check if query params in the string URL are also included in the final params --- tests/integration/test_aiohttp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/integration/test_aiohttp.py b/tests/integration/test_aiohttp.py index 55f9a89f..814f3e18 100644 --- a/tests/integration/test_aiohttp.py +++ b/tests/integration/test_aiohttp.py @@ -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)