Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
tests: add quick test script
NTFSvolume13e4d00d1024
diff --git a/pyproject.toml b/pyproject.tomlindex cac11b5a6..5845695f4 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -121,9 +121,11 @@ filterwarnings = ["error"]markers = [- "crawler_test_case: tests that do full run with a crawler (making actual network requests)"+ "crawler_test_case: tests that do full run with a crawler (making actual network requests)",+ "http: tests that makes real network requests"]-minversion = "8.4.1"+minversion = "9.1.1"+strict = truestrict_config = truestrict_markers = truediff --git a/tests/quick_test.sh b/tests/quick_test.shnew file mode 100755index 000000000..d63f0983a--- /dev/null+++ b/tests/quick_test.sh@@ -0,0 +1,3 @@+#!/bin/sh+# Ignore any test that makes a real HTTP request+uv run pytest -m "not crawler_test_case and not http" -vdiff --git a/tests/test_ffmpeg.py b/tests/test_ffmpeg.pyindex c154973a5..cd77017c9 100644--- a/tests/test_ffmpeg.py+++ b/tests/test_ffmpeg.py@@ -30,6 +30,7 @@ def get_probe_args(mock: AsyncMock) -> list[Any]:return last_call_args(mock)[len(ffmpeg._FFPROBE_CALL_PREFIX) :]async def test_probe_url_command() -> None:url = AbsoluteHttpURL("https://example.com/stream.m3u8")with mock_call() as m:@@ -49,6 +50,7 @@ async def test_probe_url_command() -> None:]async def test_probe_url_w_headers() -> None:url = AbsoluteHttpURL("https://example.com/stream.m3u8")@@ -73,6 +75,7 @@ async def test_probe_url_w_headers() -> None:]async def test_probe_url_w_proxy() -> None:url = AbsoluteHttpURL("https://example.com/stream.m3u8")proxy = AbsoluteHttpURL("http://proxy.internal:8080")@@ -84,6 +87,7 @@ async def test_probe_url_w_proxy() -> None:assert args[idx + 1] == "http://proxy.internal:8080"async def test_probe_url_w_verify_disabled() -> None:url = AbsoluteHttpURL("https://example.com/stream.m3u8")with mock_call() as m:@@ -93,6 +97,7 @@ async def test_probe_url_w_verify_disabled() -> None:assert args == ["-tls_verify", "0", "https://example.com/stream.m3u8"]async def test_probe_url_proxy_headers_no_verify() -> None:url = AbsoluteHttpURL("https://example.com/stream.m3u8")proxy = AbsoluteHttpURL("http://proxy:8080")@@ -111,6 +116,7 @@ async def test_probe_url_proxy_headers_no_verify() -> None:]async def test_ffprobe_video_url() -> None:output = await ffmpeg.probe_url(AbsoluteHttpURL("https://videos.pexels.com/video-files/29691053/12769314_360_640_60fps.mp4")