From 324845fe659ebda203ac2660b518c498684cd551 Mon Sep 17 00:00:00 2001 From: Giorgio Salluzzo Date: Mon, 5 Feb 2024 12:08:44 +0100 Subject: [PATCH] Failed to make SonarCloud happy again. --- tests/main/test_mode.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/main/test_mode.py b/tests/main/test_mode.py index 445da7b3..0d2d2e7c 100644 --- a/tests/main/test_mode.py +++ b/tests/main/test_mode.py @@ -9,7 +9,7 @@ @mocketize(strict_mode=True) def test_strict_mode_fails(): - url = "https://httpbin.local/ip" + url = "http://httpbin.local/ip" with pytest.raises(StrictMocketException): requests.get(url) @@ -17,7 +17,7 @@ def test_strict_mode_fails(): @pytest.mark.skipif('os.getenv("SKIP_TRUE_HTTP", False)') def test_intermittent_strict_mode(): - url = "https://httpbin.local/ip" + url = "http://httpbin.local/ip" with Mocketizer(strict_mode=False): requests.get(url) @@ -32,7 +32,7 @@ def test_intermittent_strict_mode(): @pytest.mark.skipif('os.getenv("SKIP_TRUE_HTTP", False)') def test_strict_mode_exceptions(): - url = "https://httpbin.local/ip" + url = "http://httpbin.local/ip" with Mocketizer(strict_mode=True, strict_mode_allowed=["httpbin.local"]): requests.get(url) @@ -42,9 +42,9 @@ def test_strict_mode_exceptions(): def test_strict_mode_error_message(): - url = "https://httpbin.local/ip" + url = "http://httpbin.local/ip" - Entry.register(Entry.GET, "https://httpbin.local/user.agent", Response(status=404)) + Entry.register(Entry.GET, "http://httpbin.local/user.agent", Response(status=404)) with Mocketizer(strict_mode=True): with pytest.raises(StrictMocketException) as exc_info: