From: Luiz Menezes Date: Tue, 18 Sep 2018 14:13:39 +0000 (-0300) Subject: Fix test_use_proxy cassette response type X-Git-Tag: v2.0.0~5^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=e9d00a5e2aa304815036ff14008ade2fec06a514;p=vcrpy.git Fix test_use_proxy cassette response type --- diff --git a/tests/integration/test_proxy.py b/tests/integration/test_proxy.py index 4dfcb92..9b3c4ad 100644 --- a/tests/integration/test_proxy.py +++ b/tests/integration/test_proxy.py @@ -51,10 +51,10 @@ def proxy_server(): def test_use_proxy(tmpdir, httpbin, proxy_server): '''Ensure that it works with a proxy.''' with vcr.use_cassette(str(tmpdir.join('proxy.yaml'))): - response, _ = requests.get(httpbin.url, proxies={'http': proxy_server}) + response = requests.get(httpbin.url, proxies={'http': proxy_server}) with vcr.use_cassette(str(tmpdir.join('proxy.yaml'))) as cassette: - cassette_response, _ = requests.get(httpbin.url, proxies={'http': proxy_server}) + cassette_response = requests.get(httpbin.url, proxies={'http': proxy_server}) assert cassette_response.headers == response.headers assert cassette.play_count == 1