mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-02-07 08:46:30 +01:00
Fix validation tests
This commit is contained in:
parent
833862cfbc
commit
b41348b988
1 changed files with 4 additions and 4 deletions
|
@ -1140,8 +1140,8 @@ class TestRequestHandlerValidation:
|
||||||
('socks5h', False),
|
('socks5h', False),
|
||||||
]),
|
]),
|
||||||
('Websockets', 'ws', [
|
('Websockets', 'ws', [
|
||||||
('http', UnsupportedRequest),
|
('http', False),
|
||||||
('https', UnsupportedRequest),
|
('https', False),
|
||||||
('socks4', False),
|
('socks4', False),
|
||||||
('socks4a', False),
|
('socks4a', False),
|
||||||
('socks5', False),
|
('socks5', False),
|
||||||
|
@ -1222,8 +1222,8 @@ class TestRequestHandlerValidation:
|
||||||
('Websockets', False, 'ws')
|
('Websockets', False, 'ws')
|
||||||
], indirect=['handler'])
|
], indirect=['handler'])
|
||||||
def test_no_proxy(self, handler, fail, scheme):
|
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}://example.com', 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'})
|
||||||
|
|
||||||
@pytest.mark.parametrize('handler,scheme', [
|
@pytest.mark.parametrize('handler,scheme', [
|
||||||
('Urllib', 'http'),
|
('Urllib', 'http'),
|
||||||
|
|
Loading…
Add table
Reference in a new issue