added conopy script proxy

This commit is contained in:
2026-06-24 10:08:12 +03:00
parent 092b4e490c
commit 925c648528
3 changed files with 94 additions and 27 deletions
+10
View File
@@ -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(