added conopy script proxy

This commit is contained in:
2026-06-24 09:46:13 +03:00
parent ac33e8fb28
commit 092b4e490c
3 changed files with 22 additions and 10 deletions
+3 -2
View File
@@ -67,13 +67,14 @@ def test_canopy_selects_intersecting_tiles_from_geojson_index() -> None:
def test_canopy_parse_socks5_proxy_url() -> None:
proxy = bootstrap_canopy.parse_socks5_proxy(
"socks5://proxy_user:secret@194.33.35.46:38599"
"socks5h://proxy_user:secret@194.33.35.46:38599"
)
assert proxy.scheme == "socks5h"
assert proxy.host == "194.33.35.46"
assert proxy.port == 38599
assert proxy.username == "proxy_user"
assert proxy.password == "secret"
assert proxy.endpoint == "socks5://194.33.35.46:38599"
assert proxy.endpoint == "socks5h://194.33.35.46:38599"
def test_canopy_urls_file_ignores_comments(tmp_path: Path) -> None: