added conopy script proxy

This commit is contained in:
2026-06-24 09:37:09 +03:00
parent 6355f8afd1
commit ac33e8fb28
3 changed files with 86 additions and 0 deletions
+11
View File
@@ -65,6 +65,17 @@ def test_canopy_selects_intersecting_tiles_from_geojson_index() -> None:
assert urls[0].endswith("/tile_a.tif")
def test_canopy_parse_socks5_proxy_url() -> None:
proxy = bootstrap_canopy.parse_socks5_proxy(
"socks5://proxy_user:secret@194.33.35.46:38599"
)
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"
def test_canopy_urls_file_ignores_comments(tmp_path: Path) -> None:
urls_file = tmp_path / "urls.txt"
urls_file.write_text(