From 30b423e8c0bf11380e7e8867a0aa592fe63cd8e7 Mon Sep 17 00:00:00 2001 From: Albertas Agejevas Date: Tue, 7 Jan 2025 21:46:38 +0200 Subject: [PATCH] Use mode="none" in proxy tests as suggested by @hartwork. --- tests/integration/test_proxy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/test_proxy.py b/tests/integration/test_proxy.py index a88697a..5e0a5db 100644 --- a/tests/integration/test_proxy.py +++ b/tests/integration/test_proxy.py @@ -82,7 +82,7 @@ def test_use_proxy(tmpdir, httpbin, proxy_server): with vcr.use_cassette(str(tmpdir.join("proxy.yaml"))): response = requests.get(httpbin.url, proxies={"http": proxy_server}) - with vcr.use_cassette(str(tmpdir.join("proxy.yaml")), mode="once") as cassette: + with vcr.use_cassette(str(tmpdir.join("proxy.yaml")), mode="none") as cassette: cassette_response = requests.get(httpbin.url, proxies={"http": proxy_server}) for key in set(cassette_response.headers.keys()) & set(response.headers.keys()): @@ -96,7 +96,7 @@ def test_use_https_proxy(tmpdir, httpbin_secure, proxy_server): with vcr.use_cassette(str(tmpdir.join("proxy.yaml"))): response = requests.get(httpbin_secure.url, proxies={"https": proxy_server}) - with vcr.use_cassette(str(tmpdir.join("proxy.yaml")), mode="once") as cassette: + with vcr.use_cassette(str(tmpdir.join("proxy.yaml")), mode="none") as cassette: cassette_response = requests.get( httpbin_secure.url, proxies={"https": proxy_server},