From b41348b988455c3234654e02e48e41514a79020f Mon Sep 17 00:00:00 2001 From: coletdjnz Date: Sat, 6 Apr 2024 15:59:34 +1300 Subject: [PATCH] Fix validation tests --- test/test_networking.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test_networking.py b/test/test_networking.py index 3ad2515fef..f5a9a95eb2 100644 --- a/test/test_networking.py +++ b/test/test_networking.py @@ -1140,8 +1140,8 @@ class HTTPSupportedRH(ValidationRH): ('socks5h', False), ]), ('Websockets', 'ws', [ - ('http', UnsupportedRequest), - ('https', UnsupportedRequest), + ('http', False), + ('https', False), ('socks4', False), ('socks4a', False), ('socks5', False), @@ -1222,8 +1222,8 @@ class HTTPSupportedRH(ValidationRH): ('Websockets', False, 'ws') ], indirect=['handler']) def test_no_proxy(self, handler, fail, scheme): - run_validation(handler, fail, Request(f'{scheme}://', proxies={'no': '127.0.0.1,github.com'})) - run_validation(handler, fail, Request(f'{scheme}://'), proxies={'no': '127.0.0.1,github.com'}) + run_validation(handler, fail, Request(f'{scheme}://example.com', proxies={'no': '127.0.0.1,github.com'})) + run_validation(handler, fail, Request(f'{scheme}://example.com'), proxies={'no': '127.0.0.1,github.com'}) @pytest.mark.parametrize('handler,scheme', [ ('Urllib', 'http'),