added conopy script proxy
This commit is contained in:
@@ -77,6 +77,16 @@ def test_canopy_parse_socks5_proxy_url() -> None:
|
||||
assert proxy.endpoint == "socks5h://194.33.35.46:38599"
|
||||
|
||||
|
||||
def test_canopy_response_total_size_from_content_range() -> None:
|
||||
response = type(
|
||||
"Response",
|
||||
(),
|
||||
{"headers": {"Content-Range": "bytes 1048576-2097151/257131787"}},
|
||||
)()
|
||||
|
||||
assert bootstrap_canopy._response_total_size(response, 1_048_576) == 257_131_787
|
||||
|
||||
|
||||
def test_canopy_urls_file_ignores_comments(tmp_path: Path) -> None:
|
||||
urls_file = tmp_path / "urls.txt"
|
||||
urls_file.write_text(
|
||||
|
||||
Reference in New Issue
Block a user