The only downloader you need. 下载器的集大成者。
TypeScript asyncasynciobittorentbtcross-platformdownload-managerdownloaderfluent-designftphttp3magnetpyqtpyside6pythonqtquicreactsoftwarestreaming
feat(tests): 测试基建统一
XiaoYouChR43a9f19dd2ae
diff --git a/pyproject.toml b/pyproject.tomlindex 856b2435..4f3f60dd 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -25,11 +25,23 @@ dependencies = [[dependency-groups]dev = ["aiohttp>=3.14.2",+ "brotli>=1.1.0","pytest>=9.1.1","pytest-asyncio>=1.4.0",+ "pytest-qt>=4.5.0","types-libtorrent>=2.0.11.20250816",+ "zstandard>=0.23.0",][tool.pytest.ini_options]-pythonpath = ["."]+pythonpath = [".", "features"]asyncio_mode = "auto"+qt_api = "pyside6"+testpaths = ["tests"]+addopts = "--strict-markers --strict-config"+filterwarnings = [+ "error",+ "ignore::pytest.PytestUnraisableExceptionWarning",+ "ignore:coroutine .* was never awaited:RuntimeWarning",+]+markers = ["network: requires internet access"]diff --git a/tests/__init__.py b/tests/__init__.pynew file mode 100644index 00000000..e69de29bdiff --git a/tests/conftest.py b/tests/conftest.pynew file mode 100644index 00000000..6593bef9--- /dev/null+++ b/tests/conftest.py@@ -0,0 +1,26 @@+from __future__ import annotations++import pytest+from aiohttp import web+++async def server():+ """Yields a factory: call with a handler to get a base URL."""+ runners = []++ async def start(handler):+ app = web.Application()+ app.router.add_get("/file", handler)+ runner = web.AppRunner(app)+ await runner.setup()+ runners.append(runner)+ site = web.TCPSite(runner, "127.0.0.1", 0)+ await site.start()+ port = site._server.sockets[0].getsockname()[1]+ return f"http://127.0.0.1:{port}/file"++ yield start++ for runner in runners:+ await runner.cleanup()diff --git a/tests/fixtures/youtube_video_header.bin b/tests/fixtures/youtube_video_header.binnew file mode 100644index 00000000..2df15f21Binary files /dev/null and b/tests/fixtures/youtube_video_header.bin differdiff --git a/tests/helpers.py b/tests/helpers.pynew file mode 100644index 00000000..7900e352--- /dev/null+++ b/tests/helpers.py@@ -0,0 +1,44 @@+from __future__ import annotations++from aiohttp import web+++def buildFileContent(size: int) -> bytes:+ return bytes(i % 256 for i in range(size))+++def buildRangeHandler(content: bytes):+ async def handler(request: web.Request) -> web.Response:+ rangeHeader = request.headers.get("Range")+ if rangeHeader is None:+ return web.Response(+ body=content,+ headers={"Content-Length": str(len(content)),+ "Accept-Ranges": "bytes"},+ )+ rangeSpec = rangeHeader.replace("bytes=", "")+ parts = rangeSpec.split("-")+ start = int(parts[0])+ end = int(parts[1]) if parts[1] else len(content) - 1+ body = content[start:end + 1]+ return web.Response(+ status=206, body=body,+ headers={+ "Content-Range": f"bytes {start}-{end}/{len(content)}",+ "Content-Length": str(len(body)),+ },+ )+ return handler+++async def runStep(step) -> list[int]:+ speeds = []++ def reportSpeed(n):+ speeds.append(n)++ async def waitForSpeedLimit():+ pass++ await step.run(reportSpeed, waitForSpeedLimit)+ return speedsdiff --git a/tests/test_container.py b/tests/test_container.pynew file mode 100644index 00000000..5310de01--- /dev/null+++ b/tests/test_container.py@@ -0,0 +1,128 @@+"""container.py 时间段下载核心逻辑测试。++Seam: buildMp4SegmentRange / buildWebmSegmentRange 纯函数。+输入:流头部 bytes + 起止时间 → 输出:SegmentRange(patchedHeader, segStart, segEnd)。++使用真实 YouTube 视频头部 fixture(itag 160, 730s, 6.7MB)。+"""+from __future__ import annotations++from pathlib import Path++import pytest++from features.yt_dlp_pack.container import (+ SegmentRange,+ buildMp4SegmentRange,+ _parseMp4Boxes,+ _parseSidx,+)++FIXTURE = Path(__file__).parent / "fixtures" / "youtube_video_header.bin"+++def video_header() -> bytes:+ return FIXTURE.read_bytes()+++class TestParseMp4Boxes:++ def test_finds_required_boxes(self, video_header):+ boxes = _parseMp4Boxes(video_header)+ assert "ftyp" in boxes+ assert "moov" in boxes+ assert "sidx" in boxes++ def test_box_order_ftyp_moov_sidx(self, video_header):+ boxes = _parseMp4Boxes(video_header)+ assert boxes["ftyp"][0] < boxes["moov"][0] < boxes["sidx"][0]+++class TestParseSidx:++ def test_reference_count(self, video_header):+ boxes = _parseMp4Boxes(video_header)+ offset, size = boxes["sidx"]+ refs = _parseSidx(video_header, offset, size)+ assert len(refs) == 146++ def test_references_cover_full_duration(self, video_header):+ boxes = _parseMp4Boxes(video_header)+ offset, size = boxes["sidx"]+ refs = _parseSidx(video_header, offset, size)+ totalDuration = sum(dur for dur, _ in refs)+ assert abs(totalDuration - 730.93) < 0.1++ def test_references_cover_full_filesize(self, video_header):+ boxes = _parseMp4Boxes(video_header)+ sidxOffset, sidxSize = boxes["sidx"]+ headerSize = sidxOffset + sidxSize+ refs = _parseSidx(video_header, sidxOffset, sidxSize)+ totalBytes = headerSize + sum(size for _, size in refs)+ assert totalBytes == 6744153+++class TestBuildMp4SegmentRange:++ def test_segment_60_65(self, video_header):+ seg = buildMp4SegmentRange(video_header, 60, 65)+ assert isinstance(seg, SegmentRange)+ assert seg.segStart > 0+ assert seg.segEnd > seg.segStart+ assert seg.segEnd - seg.segStart < 200_000++ def test_segment_covers_requested_time(self, video_header):+ """segStart 对应的 reference 起始时间 <= startTime"""+ boxes = _parseMp4Boxes(video_header)+ sidxOffset, sidxSize = boxes["sidx"]+ headerSize = sidxOffset + sidxSize+ refs = _parseSidx(video_header, sidxOffset, sidxSize)++ seg = buildMp4SegmentRange(video_header, 60, 65)++ bytePos = headerSize+ timeSec = 0.0+ segStartTime = None+ segEndTime = None+ for dur, size in refs:+ if bytePos == seg.segStart:+ segStartTime = timeSec+ bytePos += size+ if bytePos == seg.segEnd:+ segEndTime = timeSec + dur+ break+ timeSec += dur++ assert segStartTime is not None, f"segStart {seg.segStart} not on reference boundary"+ assert segEndTime is not None, f"segEnd {seg.segEnd} not on reference boundary"+ assert segStartTime <= 60+ assert segEndTime >= 65++ def test_patched_header_is_ftyp_plus_moov(self, video_header):+ seg = buildMp4SegmentRange(video_header, 60, 65)+ assert seg.patchedHeader[:4] == b'\x00\x00\x00\x1c' # ftyp size=28+ assert seg.patchedHeader[4:8] == b'ftyp'+ boxes = _parseMp4Boxes(video_header)+ moovEnd = boxes["moov"][0] + boxes["moov"][1]+ assert len(seg.patchedHeader) == moovEnd++ def test_full_video_returns_full_range(self, video_header):+ """startTime=0 endTime=731 should cover the entire file"""+ seg = buildMp4SegmentRange(video_header, 0, 731)+ boxes = _parseMp4Boxes(video_header)+ dataStart = boxes["sidx"][0] + boxes["sidx"][1]+ assert seg.segStart == dataStart+ assert seg.segEnd == 6744153++ def test_first_5_seconds(self, video_header):+ seg = buildMp4SegmentRange(video_header, 0, 5)+ boxes = _parseMp4Boxes(video_header)+ dataStart = boxes["sidx"][0] + boxes["sidx"][1]+ assert seg.segStart == dataStart+ assert seg.segEnd - seg.segStart < 100_000++ def test_last_5_seconds(self, video_header):+ seg = buildMp4SegmentRange(video_header, 726, 731)+ assert seg.segEnd == 6744153+ assert seg.segEnd - seg.segStart < 100_000diff --git a/tests/test_github_fallback.py b/tests/test_github_fallback.pyindex ba54a2da..44aa0431 100644--- a/tests/test_github_fallback.py+++ b/tests/test_github_fallback.py@@ -8,11 +8,6 @@ Seam S-GH2: GitHubParser.parse() — parse-time fallback chainfrom __future__ import annotationsimport socket-import sys-import tempfile-from pathlib import Path--sys.path.insert(0, str(Path(__file__).resolve().parent.parent / "features"))import pytestfrom aiohttp import web@@ -20,34 +15,7 @@ from aiohttp import webfrom github_pack.pack import GitHubHttpTaskStep, GitHubParserfrom http_pack.task import HttpTask, HttpTaskStepfrom app.models.task import TaskOptions, ResourceTaskOptions, TaskStatus, TaskError---def makeFileContent(size: int) -> bytes:- return bytes(i % 256 for i in range(size))---def rangeHandler(content: bytes):- async def handler(request: web.Request) -> web.Response:- rangeHeader = request.headers.get("Range")- if rangeHeader is None:- return web.Response(- body=content,- headers={"Content-Length": str(len(content)), "Accept-Ranges": "bytes"},- )- rangeSpec = rangeHeader.replace("bytes=", "")- parts = rangeSpec.split("-")- start = int(parts[0])- end = int(parts[1]) if parts[1] else len(content) - 1- body = content[start:end + 1]- return web.Response(- status=206,- body=body,- headers={- "Content-Range": f"bytes {start}-{end}/{len(content)}",- "Content-Length": str(len(body)),- },- )- return handler+from tests.helpers import buildFileContent, buildRangeHandler, runStep@pytest.fixture(autouse=True)@@ -55,33 +23,6 @@ def noProxy(monkeypatch):monkeypatch.setattr("app.client.proxy", lambda: None)-async def tmpdir():- with tempfile.TemporaryDirectory() as d:- yield Path(d)---async def server():- runners = []-- async def start(handler):- app = web.Application()- app.router.add_get("/file", handler)- runner = web.AppRunner(app)- await runner.setup()- runners.append(runner)- site = web.TCPSite(runner, "127.0.0.1", 0)- await site.start()- port = site._server.sockets[0].getsockname()[1]- return f"http://127.0.0.1:{port}/file"-- yield start-- for runner in runners:- await runner.cleanup()--def closedPort() -> str:s = socket.socket()s.bind(("127.0.0.1", 0))@@ -95,7 +36,7 @@ def deadUrl():return closedPort()-def makeGitHubStep(url, tmpdir, *, fileSize, fallbackUrls=None,+def makeGitHubStep(url, tmp_path, *, fileSize, fallbackUrls=None,subworkerCount=2, canUseRangeRequests=True):step = GitHubHttpTaskStep(stepIndex=0,@@ -109,7 +50,7 @@ def makeGitHubStep(url, tmpdir, *, fileSize, fallbackUrls=None,task = HttpTask(name="test.bin",url="https://github.com/example/repo/releases/download/v1.0/file.zip",- outputFolder=tmpdir,+ outputFolder=tmp_path,fileSize=fileSize,steps=[step],)@@ -117,69 +58,59 @@ def makeGitHubStep(url, tmpdir, *, fileSize, fallbackUrls=None,return task, step-async def runStep(step):- speeds = []- def reportSpeed(n):- speeds.append(n)- async def waitForSpeedLimit():- pass- await step.run(reportSpeed, waitForSpeedLimit)- return speeds--# ── S-GH1: Download-time fallback ──class TestDownloadTimeFallback:- async def test_fallback_on_connection_refused(self, server, tmpdir, deadUrl):- content = makeFileContent(1000)- okUrl = await server(rangeHandler(content))+ async def test_fallback_on_connection_refused(self, server, tmp_path, deadUrl):+ content = buildFileContent(1000)+ okUrl = await server(buildRangeHandler(content))task, step = makeGitHubStep(- deadUrl, tmpdir, fileSize=1000, fallbackUrls=[okUrl],+ deadUrl, tmp_path, fileSize=1000, fallbackUrls=[okUrl],)task.setStatus(TaskStatus.RUNNING)await runStep(step)- assert (tmpdir / "test.bin").read_bytes() == content+ assert (tmp_path / "test.bin").read_bytes() == contentassert step.url == okUrl- async def test_no_fallback_on_permanent_error(self, server, tmpdir):- content = makeFileContent(100)+ async def test_no_fallback_on_permanent_error(self, server, tmp_path):+ content = buildFileContent(100)async def forbidden(request):return web.Response(status=403, text="Forbidden")forbiddenUrl = await server(forbidden)- okUrl = await server(rangeHandler(content))+ okUrl = await server(buildRangeHandler(content))task, step = makeGitHubStep(- forbiddenUrl, tmpdir, fileSize=100, fallbackUrls=[okUrl],+ forbiddenUrl, tmp_path, fileSize=100, fallbackUrls=[okUrl],)task.setStatus(TaskStatus.RUNNING)with pytest.raises(TaskError, match="403"):await runStep(step)- async def test_fallback_chain_tries_each(self, server, tmpdir, deadUrl):- content = makeFileContent(500)- okUrl = await server(rangeHandler(content))+ async def test_fallback_chain_tries_each(self, server, tmp_path, deadUrl):+ content = buildFileContent(500)+ okUrl = await server(buildRangeHandler(content))task, step = makeGitHubStep(- deadUrl, tmpdir, fileSize=500, fallbackUrls=[closedPort(), okUrl],+ deadUrl, tmp_path, fileSize=500, fallbackUrls=[closedPort(), okUrl],)task.setStatus(TaskStatus.RUNNING)await runStep(step)- assert (tmpdir / "test.bin").read_bytes() == content+ assert (tmp_path / "test.bin").read_bytes() == contentassert step.url == okUrl- async def test_all_fallbacks_exhausted(self, tmpdir, deadUrl):+ async def test_all_fallbacks_exhausted(self, tmp_path, deadUrl):task, step = makeGitHubStep(- deadUrl, tmpdir, fileSize=100,+ deadUrl, tmp_path, fileSize=100,fallbackUrls=[closedPort()],)task.setStatus(TaskStatus.RUNNING)diff --git a/tests/test_http_subworker.py b/tests/test_http_subworker.pyindex 1a86b846..ef31ea96 100644--- a/tests/test_http_subworker.py+++ b/tests/test_http_subworker.py@@ -14,7 +14,6 @@ import gzipimport osimport zlibimport zstandard-import tempfilefrom pathlib import Pathimport pytest@@ -22,69 +21,10 @@ from aiohttp import webfrom features.http_pack.task import HttpTask, HttpTaskStep, HttpSubworker, PermanentDownloadError, RangeNotSupportedErrorfrom app.models.task import TaskStatus, TaskError+from tests.helpers import buildFileContent, buildRangeHandler, runStep-# ── Test server ──---def makeFileContent(size: int) -> bytes:- return bytes(i % 256 for i in range(size))---def rangeHandler(content: bytes):- """Standard HTTP range server."""- async def handler(request: web.Request) -> web.Response:- rangeHeader = request.headers.get("Range")- if rangeHeader is None:- return web.Response(- body=content,- headers={"Content-Length": str(len(content)), "Accept-Ranges": "bytes"},- )- rangeSpec = rangeHeader.replace("bytes=", "")- parts = rangeSpec.split("-")- start = int(parts[0])- end = int(parts[1]) if parts[1] else len(content) - 1- body = content[start:end + 1]- return web.Response(- status=206,- body=body,- headers={- "Content-Range": f"bytes {start}-{end}/{len(content)}",- "Content-Length": str(len(body)),- },- )- return handler---async def tmpdir():- with tempfile.TemporaryDirectory() as d:- yield Path(d)---async def server():- """Yields a factory: call with a handler to get a base URL."""- runners = []-- async def start(handler):- app = web.Application()- app.router.add_get("/file", handler)- runner = web.AppRunner(app)- await runner.setup()- runners.append(runner)- site = web.TCPSite(runner, "127.0.0.1", 0)- await site.start()- port = site._server.sockets[0].getsockname()[1]- return f"http://127.0.0.1:{port}/file"-- yield start-- for runner in runners:- await runner.cleanup()---def makeStep(url: str, tmpdir: Path, *, fileSize: int, subworkerCount: int = 2,+def makeStep(url: str, tmp_path: Path, *, fileSize: int, subworkerCount: int = 2,canUseRangeRequests: bool = True, userAgent: str = "",clientProfile: str = "raw") -> tuple[HttpTask, HttpTaskStep]:step = HttpTaskStep(@@ -99,7 +39,7 @@ def makeStep(url: str, tmpdir: Path, *, fileSize: int, subworkerCount: int = 2,task = HttpTask(name="test.bin",url=url,- outputFolder=tmpdir,+ outputFolder=tmp_path,fileSize=fileSize,steps=[step],)@@ -107,20 +47,6 @@ def makeStep(url: str, tmpdir: Path, *, fileSize: int, subworkerCount: int = 2,return task, step-async def runStep(step: HttpTaskStep) -> list[int]:- """Run a step, collect reported speeds, return them."""- speeds = []-- def reportSpeed(n):- speeds.append(n)-- async def waitForSpeedLimit():- pass-- await step.run(reportSpeed, waitForSpeedLimit)- return speeds--# ── S13a: Range correctness ──@@ -168,36 +94,36 @@ class TestRangeCorrectness:assert len(sws) == 1assert sws[0].end == -1- async def test_download_produces_correct_file(self, server, tmpdir):- content = makeFileContent(1000)- url = await server(rangeHandler(content))- task, step = makeStep(url, tmpdir, fileSize=1000, subworkerCount=2)+ async def test_download_produces_correct_file(self, server, tmp_path):+ content = buildFileContent(1000)+ url = await server(buildRangeHandler(content))+ task, step = makeStep(url, tmp_path, fileSize=1000, subworkerCount=2)task.setStatus(TaskStatus.RUNNING)await runStep(step)- result = (tmpdir / "test.bin").read_bytes()+ result = (tmp_path / "test.bin").read_bytes()assert result == content- async def test_single_subworker_correct(self, server, tmpdir):- content = makeFileContent(500)- url = await server(rangeHandler(content))- task, step = makeStep(url, tmpdir, fileSize=500, subworkerCount=1)+ async def test_single_subworker_correct(self, server, tmp_path):+ content = buildFileContent(500)+ url = await server(buildRangeHandler(content))+ task, step = makeStep(url, tmp_path, fileSize=500, subworkerCount=1)task.setStatus(TaskStatus.RUNNING)await runStep(step)- assert (tmpdir / "test.bin").read_bytes() == content+ assert (tmp_path / "test.bin").read_bytes() == content- async def test_many_subworkers_correct(self, server, tmpdir):- content = makeFileContent(100)- url = await server(rangeHandler(content))- task, step = makeStep(url, tmpdir, fileSize=100, subworkerCount=10)+ async def test_many_subworkers_correct(self, server, tmp_path):+ content = buildFileContent(100)+ url = await server(buildRangeHandler(content))+ task, step = makeStep(url, tmp_path, fileSize=100, subworkerCount=10)task.setStatus(TaskStatus.RUNNING)await runStep(step)- assert (tmpdir / "test.bin").read_bytes() == content+ assert (tmp_path / "test.bin").read_bytes() == content# ── S13c: Server degradation ──@@ -205,18 +131,18 @@ class TestRangeCorrectness:class TestServerDegradation:- async def test_403_raises_permanent_error(self, server, tmpdir):+ async def test_403_raises_permanent_error(self, server, tmp_path):async def forbidden(request):return web.Response(status=403, text="Forbidden")url = await server(forbidden)- task, step = makeStep(url, tmpdir, fileSize=100, subworkerCount=1)+ task, step = makeStep(url, tmp_path, fileSize=100, subworkerCount=1)task.setStatus(TaskStatus.RUNNING)with pytest.raises(TaskError, match="403"):await runStep(step)- async def test_cloudflare_mitigated_raises_permanent(self, server, tmpdir):+ async def test_cloudflare_mitigated_raises_permanent(self, server, tmp_path):async def cfMitigated(request):return web.Response(status=403,@@ -225,15 +151,15 @@ class TestServerDegradation:)url = await server(cfMitigated)- task, step = makeStep(url, tmpdir, fileSize=100, subworkerCount=1)+ task, step = makeStep(url, tmp_path, fileSize=100, subworkerCount=1)task.setStatus(TaskStatus.RUNNING)with pytest.raises(TaskError):await runStep(step)- async def test_no_range_support_downloads_full(self, server, tmpdir):+ async def test_no_range_support_downloads_full(self, server, tmp_path):"""Server doesn't support ranges — step falls back to single full download."""- content = makeFileContent(500)+ content = buildFileContent(500)async def noRange(request):return web.Response(@@ -242,12 +168,12 @@ class TestServerDegradation:)url = await server(noRange)- task, step = makeStep(url, tmpdir, fileSize=500, subworkerCount=1,+ task, step = makeStep(url, tmp_path, fileSize=500, subworkerCount=1,canUseRangeRequests=False)task.setStatus(TaskStatus.RUNNING)await runStep(step)- assert (tmpdir / "test.bin").read_bytes() == content+ assert (tmp_path / "test.bin").read_bytes() == content# ── S13e: Request construction ──@@ -255,14 +181,14 @@ class TestServerDegradation:class TestRequestConstruction:- async def test_effective_headers_include_user_agent(self, server, tmpdir):+ async def test_effective_headers_include_user_agent(self, server, tmp_path):"""All subworker paths should send the configured User-Agent."""receivedHeaders: list[dict] = []async def captureHeaders(request):receivedHeaders.append(dict(request.headers))rangeHeader = request.headers.get("Range")- content = makeFileContent(100)+ content = buildFileContent(100)if rangeHeader:parts = rangeHeader.replace("bytes=", "").split("-")start = int(parts[0])@@ -278,7 +204,7 @@ class TestRequestConstruction:return web.Response(body=content, headers={"Content-Length": str(len(content))})url = await server(captureHeaders)- task, step = makeStep(url, tmpdir, fileSize=100, subworkerCount=2,+ task, step = makeStep(url, tmp_path, fileSize=100, subworkerCount=2,userAgent="GhostTest/1.0")task.setStatus(TaskStatus.RUNNING)@@ -291,10 +217,10 @@ class TestRequestConstruction:f"User-Agent missing from request headers: {hdrs}")- async def test_speed_reported_for_every_chunk(self, server, tmpdir):- content = makeFileContent(1000)- url = await server(rangeHandler(content))- task, step = makeStep(url, tmpdir, fileSize=1000, subworkerCount=2)+ async def test_speed_reported_for_every_chunk(self, server, tmp_path):+ content = buildFileContent(1000)+ url = await server(buildRangeHandler(content))+ task, step = makeStep(url, tmp_path, fileSize=1000, subworkerCount=2)task.setStatus(TaskStatus.RUNNING)speeds = await runStep(step)@@ -377,9 +303,9 @@ class TestReassignment:assert len(step.subworkers) == 1- async def test_reassignment_during_download(self, server, tmpdir):+ async def test_reassignment_during_download(self, server, tmp_path):"""When a fast subworker finishes, it steals from the slowest."""- content = makeFileContent(2_000_000)+ content = buildFileContent(2_000_000)request_count = 0@@ -407,12 +333,12 @@ class TestReassignment:)url = await server(slowForSecondHalf)- task, step = makeStep(url, tmpdir, fileSize=2_000_000, subworkerCount=2)+ task, step = makeStep(url, tmp_path, fileSize=2_000_000, subworkerCount=2)task.setStatus(TaskStatus.RUNNING)await runStep(step)- assert (tmpdir / "test.bin").read_bytes() == content+ assert (tmp_path / "test.bin").read_bytes() == content# Reassignment should have created extra requests (more than the initial 2)assert request_count >= 2@@ -422,13 +348,13 @@ class TestReassignment:class TestResume:- async def test_resume_sw0_done_sw1_pending(self, server, tmpdir):+ async def test_resume_sw0_done_sw1_pending(self, server, tmp_path):"""Resume with sw0 completed, sw1 not yet started."""from struct import pack as struct_pack- content = makeFileContent(1000)- url = await server(rangeHandler(content))+ content = buildFileContent(1000)+ url = await server(buildRangeHandler(content))- filepath = tmpdir / "test.bin"+ filepath = tmp_path / "test.bin"with open(filepath, "wb") as f:f.write(content[:500])f.write(b'\x00' * 500)@@ -437,7 +363,7 @@ class TestResume:f.write(struct_pack("<QQQ", 0, 500, 499))f.write(struct_pack("<QQQ", 500, 500, 999))- task, step = makeStep(url, tmpdir, fileSize=1000, subworkerCount=2,+ task, step = makeStep(url, tmp_path, fileSize=1000, subworkerCount=2,canUseRangeRequests=True)task.setStatus(TaskStatus.RUNNING)@@ -446,13 +372,13 @@ class TestResume:assert filepath.read_bytes() == contentassert not Path(str(filepath) + ".ghd").exists()- async def test_resume_sw1_partial(self, server, tmpdir):+ async def test_resume_sw1_partial(self, server, tmp_path):"""Resume with sw1 partially downloaded (200 of 500 bytes)."""from struct import pack as struct_pack- content = makeFileContent(1000)- url = await server(rangeHandler(content))+ content = buildFileContent(1000)+ url = await server(buildRangeHandler(content))- filepath = tmpdir / "test.bin"+ filepath = tmp_path / "test.bin"with open(filepath, "wb") as f:f.write(content[:700])f.write(b'\x00' * 300)@@ -461,7 +387,7 @@ class TestResume:f.write(struct_pack("<QQQ", 0, 500, 499))f.write(struct_pack("<QQQ", 500, 700, 999))- task, step = makeStep(url, tmpdir, fileSize=1000, subworkerCount=2,+ task, step = makeStep(url, tmp_path, fileSize=1000, subworkerCount=2,canUseRangeRequests=True)task.setStatus(TaskStatus.RUNNING)@@ -469,13 +395,13 @@ class TestResume:assert filepath.read_bytes() == content- async def test_resume_with_increased_thread_count(self, server, tmpdir):+ async def test_resume_with_increased_thread_count(self, server, tmp_path):"""User raised subworkerCount from 2 to 4 via EditDialog. Resume should split."""from struct import pack as struct_pack- content = makeFileContent(1000)- url = await server(rangeHandler(content))+ content = buildFileContent(1000)+ url = await server(buildRangeHandler(content))- filepath = tmpdir / "test.bin"+ filepath = tmp_path / "test.bin"with open(filepath, "wb") as f:f.write(content[:500])f.write(b'\x00' * 500)@@ -484,7 +410,7 @@ class TestResume:f.write(struct_pack("<QQQ", 0, 500, 499))f.write(struct_pack("<QQQ", 500, 500, 999))- task, step = makeStep(url, tmpdir, fileSize=1000, subworkerCount=4,+ task, step = makeStep(url, tmp_path, fileSize=1000, subworkerCount=4,canUseRangeRequests=True)task.setStatus(TaskStatus.RUNNING)@@ -493,13 +419,13 @@ class TestResume:assert filepath.read_bytes() == contentassert len(step.subworkers) >= 4- async def test_resume_decreased_thread_count_is_noop(self, server, tmpdir):+ async def test_resume_decreased_thread_count_is_noop(self, server, tmp_path):"""User reduced subworkerCount. Existing subworkers should not be removed."""from struct import pack as struct_pack- content = makeFileContent(1000)- url = await server(rangeHandler(content))+ content = buildFileContent(1000)+ url = await server(buildRangeHandler(content))- filepath = tmpdir / "test.bin"+ filepath = tmp_path / "test.bin"filepath.write_bytes(b'\x00' * 1000)with open(str(filepath) + ".ghd", "wb") as f:@@ -508,7 +434,7 @@ class TestResume:f.write(struct_pack("<QQQ", 500, 500, 749))f.write(struct_pack("<QQQ", 750, 750, 999))- task, step = makeStep(url, tmpdir, fileSize=1000, subworkerCount=2,+ task, step = makeStep(url, tmp_path, fileSize=1000, subworkerCount=2,canUseRangeRequests=True)task.setStatus(TaskStatus.RUNNING)@@ -516,18 +442,18 @@ class TestResume:assert filepath.read_bytes() == content- async def test_corrupt_record_starts_fresh(self, server, tmpdir):+ async def test_corrupt_record_starts_fresh(self, server, tmp_path):"""Corrupt .ghd file — should discard and start fresh."""- content = makeFileContent(1000)- url = await server(rangeHandler(content))+ content = buildFileContent(1000)+ url = await server(buildRangeHandler(content))- filepath = tmpdir / "test.bin"+ filepath = tmp_path / "test.bin"filepath.write_bytes(b'\x00' * 1000)with open(str(filepath) + ".ghd", "wb") as f:f.write(b'\xff' * 7)- task, step = makeStep(url, tmpdir, fileSize=1000, subworkerCount=2,+ task, step = makeStep(url, tmp_path, fileSize=1000, subworkerCount=2,canUseRangeRequests=True)task.setStatus(TaskStatus.RUNNING)@@ -541,9 +467,9 @@ class TestResume:class TestTransientRetry:- async def test_500_retries_then_succeeds(self, server, tmpdir, monkeypatch):+ async def test_500_retries_then_succeeds(self, server, tmp_path, monkeypatch):"""Server returns 500 once, then 206. Download should complete."""- content = makeFileContent(500)+ content = buildFileContent(500)fail_count = 0async def failOnce(request: web.Request) -> web.Response:@@ -551,7 +477,7 @@ class TestTransientRetry:fail_count += 1if fail_count <= 1:return web.Response(status=500, text="Internal Server Error")- return await rangeHandler(content)(request)+ return await buildRangeHandler(content)(request)_real_sleep = asyncio.sleep@@ -561,12 +487,12 @@ class TestTransientRetry:monkeypatch.setattr(asyncio, "sleep", fast_sleep)url = await server(failOnce)- task, step = makeStep(url, tmpdir, fileSize=500, subworkerCount=1)+ task, step = makeStep(url, tmp_path, fileSize=500, subworkerCount=1)task.setStatus(TaskStatus.RUNNING)await runStep(step)- assert (tmpdir / "test.bin").read_bytes() == content+ assert (tmp_path / "test.bin").read_bytes() == contentassert fail_count >= 2@@ -585,31 +511,31 @@ def ignoreRangeHandler(content: bytes):class TestRangeFallback:- async def test_200_for_range_falls_back_to_single_stream(self, server, tmpdir):+ async def test_200_for_range_falls_back_to_single_stream(self, server, tmp_path):"""Server returns 200 for Range requests. Should fallback and complete."""- content = makeFileContent(500)+ content = buildFileContent(500)url = await server(ignoreRangeHandler(content))- task, step = makeStep(url, tmpdir, fileSize=500, subworkerCount=2,+ task, step = makeStep(url, tmp_path, fileSize=500, subworkerCount=2,canUseRangeRequests=True)task.setStatus(TaskStatus.RUNNING)await runStep(step)assert not step.canUseRangeRequests- assert (tmpdir / "test.bin").read_bytes() == content+ assert (tmp_path / "test.bin").read_bytes() == content- async def test_200_for_range_single_subworker(self, server, tmpdir):+ async def test_200_for_range_single_subworker(self, server, tmp_path):"""Same fallback with only 1 subworker."""- content = makeFileContent(200)+ content = buildFileContent(200)url = await server(ignoreRangeHandler(content))- task, step = makeStep(url, tmpdir, fileSize=200, subworkerCount=1,+ task, step = makeStep(url, tmp_path, fileSize=200, subworkerCount=1,canUseRangeRequests=True)task.setStatus(TaskStatus.RUNNING)await runStep(step)assert not step.canUseRangeRequests- assert (tmpdir / "test.bin").read_bytes() == content+ assert (tmp_path / "test.bin").read_bytes() == content# ── S13c: Disk full ──@@ -617,13 +543,13 @@ class TestRangeFallback:class TestDiskFull:- async def test_enospc_raises_task_error(self, server, tmpdir, monkeypatch):+ async def test_enospc_raises_task_error(self, server, tmp_path, monkeypatch):"""pwrite raises ENOSPC — should bubble as TaskError, not retry."""import errno as errno_mod- content = makeFileContent(500)- url = await server(rangeHandler(content))- task, step = makeStep(url, tmpdir, fileSize=500, subworkerCount=1)+ content = buildFileContent(500)+ url = await server(buildRangeHandler(content))+ task, step = makeStep(url, tmp_path, fileSize=500, subworkerCount=1)task.setStatus(TaskStatus.RUNNING)def failing_pwrite(fd, data, offset):@@ -640,9 +566,9 @@ class TestDiskFull:class TestStallRecovery:- async def test_stalled_stream_recovers_and_completes(self, server, tmpdir, monkeypatch):+ async def test_stalled_stream_recovers_and_completes(self, server, tmp_path, monkeypatch):"""Stream stalls mid-transfer; read_timeout triggers retry, download completes."""- content = makeFileContent(500)+ content = buildFileContent(500)hasStalled = FalsereleaseHang = asyncio.Event()@@ -696,12 +622,12 @@ class TestStallRecovery:monkeypatch.setattr(asyncio, "sleep", fast_sleep)url = await server(stallOnce)- task, step = makeStep(url, tmpdir, fileSize=500, subworkerCount=1)+ task, step = makeStep(url, tmp_path, fileSize=500, subworkerCount=1)task.setStatus(TaskStatus.RUNNING)await asyncio.wait_for(runStep(step), timeout=10)- assert (tmpdir / "test.bin").read_bytes() == content+ assert (tmp_path / "test.bin").read_bytes() == contentassert hasStalledreleaseHang.set()@@ -774,19 +700,19 @@ def brokenEncodingRangeHandler(content: bytes, encoding: str):class TestCompressedRange:@pytest.mark.parametrize("encoding", list(ENCODINGS))- async def test_compressed_range_produces_correct_file(self, server, tmpdir, encoding):- content = makeFileContent(1000)+ async def test_compressed_range_produces_correct_file(self, server, tmp_path, encoding):+ content = buildFileContent(1000)url = await server(compressedRangeHandler(content, encoding))- task, step = makeStep(url, tmpdir, fileSize=1000, subworkerCount=2)+ task, step = makeStep(url, tmp_path, fileSize=1000, subworkerCount=2)task.setStatus(TaskStatus.RUNNING)await runStep(step)- assert (tmpdir / "test.bin").read_bytes() == content+ assert (tmp_path / "test.bin").read_bytes() == content@pytest.mark.parametrize("encoding", list(ENCODINGS))- async def test_broken_encoding_falls_back_to_single_stream(self, server, tmpdir, monkeypatch, encoding):- content = makeFileContent(500)+ async def test_broken_encoding_falls_back_to_single_stream(self, server, tmp_path, monkeypatch, encoding):+ content = buildFileContent(500)_real_sleep = asyncio.sleep@@ -796,18 +722,18 @@ class TestCompressedRange:monkeypatch.setattr(asyncio, "sleep", fast_sleep)url = await server(brokenEncodingRangeHandler(content, encoding))- task, step = makeStep(url, tmpdir, fileSize=500, subworkerCount=2,+ task, step = makeStep(url, tmp_path, fileSize=500, subworkerCount=2,canUseRangeRequests=True)task.setStatus(TaskStatus.RUNNING)await asyncio.wait_for(runStep(step), timeout=15)assert not step.canUseRangeRequests- assert (tmpdir / "test.bin").read_bytes() == content+ assert (tmp_path / "test.bin").read_bytes() == content- async def test_mixed_encodings_across_subworkers(self, server, tmpdir):+ async def test_mixed_encodings_across_subworkers(self, server, tmp_path):"""Different subworkers get different Content-Encoding (CDN edge variance)."""- content = makeFileContent(1000)+ content = buildFileContent(1000)encodingNames = list(ENCODINGS)requestIndex = 0@@ -838,16 +764,16 @@ class TestCompressedRange:)url = await server(handler)- task, step = makeStep(url, tmpdir, fileSize=1000, subworkerCount=4)+ task, step = makeStep(url, tmp_path, fileSize=1000, subworkerCount=4)task.setStatus(TaskStatus.RUNNING)await runStep(step)- assert (tmpdir / "test.bin").read_bytes() == content+ assert (tmp_path / "test.bin").read_bytes() == content- async def test_reassignment_with_compressed_range(self, server, tmpdir):+ async def test_reassignment_with_compressed_range(self, server, tmp_path):"""_splitSlowest during compressed streaming: clamp on decompressed bytes, new subworker gets correct compressed range."""- content = makeFileContent(2_000_000)+ content = buildFileContent(2_000_000)requestCount = 0compress = ENCODINGS["gzip"]@@ -878,12 +804,12 @@ class TestCompressedRange:)url = await server(handler)- task, step = makeStep(url, tmpdir, fileSize=2_000_000, subworkerCount=2)+ task, step = makeStep(url, tmp_path, fileSize=2_000_000, subworkerCount=2)task.setStatus(TaskStatus.RUNNING)await runStep(step)- assert (tmpdir / "test.bin").read_bytes() == content+ assert (tmp_path / "test.bin").read_bytes() == contentassert requestCount > 2diff --git a/tests/test_identity_preset.py b/tests/test_identity_preset.pyindex b7dd8595..62eb1344 100644--- a/tests/test_identity_preset.py+++ b/tests/test_identity_preset.py@@ -7,13 +7,10 @@ from __future__ import annotationsimport sysfrom dataclasses import replace-from pathlib import Pathfrom unittest.mock import MagicMock, patchimport pytest-sys.path.insert(0, str(Path(__file__).resolve().parents[1]))-# ---------------------------------------------------------------------------# Fixtures: mock cfg so tests don't depend on user configdiff --git a/tests/test_segment_e2e.py b/tests/test_segment_e2e.pynew file mode 100644index 00000000..5e1ab245--- /dev/null+++ b/tests/test_segment_e2e.py@@ -0,0 +1,190 @@+"""端到端测试:YouTube 时间段下载 (1:00-1:05)。++完整管道:yt-dlp extract → sidx parse → partial download → reconstruct → ffmpeg trim。+使用真实 YouTube URL,只下载 ~130KB 而非整个 6.7MB 文件。+"""+from __future__ import annotations++import importlib+import subprocess+import sys+import tempfile+import urllib.request+from pathlib import Path++import pytest++from features.yt_dlp_pack.container import buildMp4SegmentRange++VIDEO_URL = "https://www.youtube.com/watch?v=uG44DZMMDtw"+START_TIME = 60+END_TIME = 65+++def _loadYtDlp():+ from features.yt_dlp_pack.config import youTubeRuntime+ vendorPath = str(youTubeRuntime.ytDlpFolder())+ if vendorPath and vendorPath not in sys.path:+ sys.path.insert(0, vendorPath)+ return importlib.import_module("yt_dlp")+++def _extractFormats(yt_dlp):+ from features.yt_dlp_pack.config import youTubeRuntime+ opts = {+ "quiet": True, "no_warnings": True,+ "allowed_extractors": ["youtube.*"],+ "nocheckcertificate": True,+ "noplaylist": True,+ }+ qjsPath = youTubeRuntime.qjsPath()+ if qjsPath:+ opts["js_runtimes"] = {"quickjs": {"path": qjsPath}}+ with yt_dlp.YoutubeDL(opts) as ydl:+ return ydl.extract_info(VIDEO_URL, download=False)+++def _pickFormat(formats, role):+ if role == "video":+ candidates = [f for f in formats if f.get("vcodec", "none") != "none"+ and f.get("acodec", "none") == "none" and f.get("ext") == "mp4"]+ return sorted(candidates, key=lambda f: f.get("height", 0))[0] if candidates else None+ candidates = [f for f in formats if f.get("acodec", "none") != "none"+ and f.get("vcodec", "none") == "none" and f.get("ext") in ("mp4", "m4a")]+ return sorted(candidates, key=lambda f: f.get("abr", 0))[0] if candidates else None+++def _fetchBytes(url, headers, start, end):+ req = urllib.request.Request(url, headers={+ **headers,+ "Range": f"bytes={start}-{end - 1}",+ })+ with urllib.request.urlopen(req) as resp:+ return resp.read()+++def _probeDuration(ffprobe, path):+ result = subprocess.run(+ [ffprobe, "-v", "error", "-show_entries", "format=duration",+ "-of", "default=noprint_wrappers=1:nokey=1", str(path)],+ capture_output=True, text=True,+ )+ return float(result.stdout.strip())++[email protected](scope="module")+def yt_info():+ yt_dlp = _loadYtDlp()+ return _extractFormats(yt_dlp)++[email protected](scope="module")+def ffmpeg_paths():+ from features.ffmpeg_pack.config import ffmpegRuntime+ ffmpeg = ffmpegRuntime.path()+ ffprobe = ffmpegRuntime.ffprobePath()+ if not ffmpeg or not ffprobe:+ pytest.skip("FFmpeg not installed")+ return ffmpeg, ffprobe+++class TestSegmentE2E:++ def test_video_segment_download_and_trim(self, yt_info, ffmpeg_paths):+ ffmpeg, ffprobe = ffmpeg_paths+ formats = yt_info.get("formats", [])+ fmt = _pickFormat(formats, "video")+ assert fmt, "no video format found"++ url = fmt["url"]+ headers = dict(fmt.get("http_headers") or {})++ # 1. Fetch header (4KB)+ headerData = _fetchBytes(url, headers, 0, 4096)+ assert len(headerData) >= 2048++ # 2. Parse sidx → SegmentRange+ seg = buildMp4SegmentRange(headerData, START_TIME, END_TIME)+ segmentSize = seg.segEnd - seg.segStart+ fullSize = int(fmt.get("filesize") or fmt.get("filesize_approx") or 0)++ print(f"\nSegment: {seg.segStart}-{seg.segEnd} ({segmentSize} bytes)")+ print(f"Full file: {fullSize} bytes")+ print(f"Saving: {100 - segmentSize * 100 // fullSize}%")++ assert segmentSize < fullSize // 2, "segment should be much smaller than full file"++ # 3. Download segment bytes+ segmentData = _fetchBytes(url, headers, seg.segStart, seg.segEnd)+ assert len(segmentData) == segmentSize++ # 4. Reconstruct: patchedHeader + segment → valid MP4+ with tempfile.NamedTemporaryFile(suffix=".mp4", delete=False) as tmp:+ tmp.write(seg.patchedHeader)+ tmp.write(segmentData)+ reconstructed = Path(tmp.name)++ try:+ # 5. ffmpeg trim+ outputPath = reconstructed.with_name("trimmed.mp4")+ result = subprocess.run(+ [ffmpeg, "-y", "-v", "error",+ "-ss", str(START_TIME - seg.segStartTime),+ "-i", str(reconstructed),+ "-t", str(END_TIME - START_TIME),+ "-c", "copy", str(outputPath)],+ capture_output=True, text=True,+ )+ assert result.returncode == 0, f"ffmpeg failed: {result.stderr}"+ assert outputPath.exists()+ assert outputPath.stat().st_size > 0++ # 6. Verify duration+ duration = _probeDuration(ffprobe, outputPath)+ print(f"Output duration: {duration:.2f}s (expected ~{END_TIME - START_TIME}s)")+ assert 3.0 <= duration <= 8.0, f"unexpected duration: {duration}"++ finally:+ reconstructed.unlink(missing_ok=True)+ outputPath.unlink(missing_ok=True)++ def test_audio_segment_download_and_trim(self, yt_info, ffmpeg_paths):+ ffmpeg, ffprobe = ffmpeg_paths+ formats = yt_info.get("formats", [])+ fmt = _pickFormat(formats, "audio")+ assert fmt, "no audio format found"++ url = fmt["url"]+ headers = dict(fmt.get("http_headers") or {})++ headerData = _fetchBytes(url, headers, 0, 4096)+ seg = buildMp4SegmentRange(headerData, START_TIME, END_TIME)++ segmentData = _fetchBytes(url, headers, seg.segStart, seg.segEnd)++ with tempfile.NamedTemporaryFile(suffix=".m4a", delete=False) as tmp:+ tmp.write(seg.patchedHeader)+ tmp.write(segmentData)+ reconstructed = Path(tmp.name)++ try:+ outputPath = reconstructed.with_name("trimmed.m4a")+ result = subprocess.run(+ [ffmpeg, "-y", "-v", "error",+ "-ss", str(START_TIME - seg.segStartTime),+ "-i", str(reconstructed),+ "-t", str(END_TIME - START_TIME),+ "-c", "copy", str(outputPath)],+ capture_output=True, text=True,+ )+ assert result.returncode == 0, f"ffmpeg failed: {result.stderr}"+ assert outputPath.exists()++ duration = _probeDuration(ffprobe, outputPath)+ print(f"\nAudio output duration: {duration:.2f}s")+ assert 3.0 <= duration <= 8.0++ finally:+ reconstructed.unlink(missing_ok=True)+ outputPath.unlink(missing_ok=True)diff --git a/tests/test_task_card.py b/tests/test_task_card.pyindex 900e0ee5..75255b4b 100644--- a/tests/test_task_card.py+++ b/tests/test_task_card.py@@ -11,13 +11,6 @@ import pytestfrom app.models.task import Task, TaskStep, TaskStatus, StepError[email protected](scope="session")-def qapp():- from PySide6.QtWidgets import QApplication- app = QApplication.instance() or QApplication([])- yield app--@dataclass(kw_only=True)class StubStep(TaskStep):stepIndex: int = 0diff --git a/tests/test_task_draft.py b/tests/test_task_draft.pyindex 9f2508b8..f4f2f0ef 100644--- a/tests/test_task_draft.py+++ b/tests/test_task_draft.py@@ -8,17 +8,10 @@ from dataclasses import dataclass, fieldfrom uuid import uuid4import pytest-from PySide6.QtWidgets import QApplicationfrom app.models.task import Task, TaskStep, TaskStatus[email protected](scope="session")-def qapp():- app = QApplication.instance() or QApplication([])- yield app--# ── Stubs ──diff --git a/tests/test_task_edit.py b/tests/test_task_edit.pyindex 0b273f4a..6b271812 100644--- a/tests/test_task_edit.py+++ b/tests/test_task_edit.py@@ -86,13 +86,6 @@ class StubOptionCard(QWidget):return dict(self._opts)[email protected](scope="session")-def qapp():- from PySide6.QtWidgets import QApplication- app = QApplication.instance() or QApplication([])- yield app--@pytest.fixture()def parentWindow(qapp):from PySide6.QtWidgets import QWidgetdiff --git a/tests/test_task_page.py b/tests/test_task_page.pyindex fc97ce13..f9dc3573 100644--- a/tests/test_task_page.py+++ b/tests/test_task_page.py@@ -5,20 +5,11 @@ Seam S11: taskStarted/Stopped → 精确刷新 running cards。from __future__ import annotationsfrom dataclasses import dataclass, field-from unittest.mock import MagicMock-import pytestfrom app.models.task import Task, TaskStep, TaskStatus[email protected](scope="session")-def qapp():- from PySide6.QtWidgets import QApplication- app = QApplication.instance() or QApplication([])- yield app--@dataclass(kw_only=True)class StubStep(TaskStep):stepIndex: int = 0@@ -49,6 +40,7 @@ class StubTaskService:tasksAllCompleted = Signal()queueChanged = Signal()fileDisappeared = Signal(object)+ fileDeleteDenied = Signal(object)diskSpaceInsufficient = Signal(int, int)self._signals = _Signals()self.tasks = []diff --git a/tests/test_task_service.py b/tests/test_task_service.pyindex 542287f6..2ffe8478 100644--- a/tests/test_task_service.py+++ b/tests/test_task_service.py@@ -6,7 +6,6 @@ from __future__ import annotationsfrom dataclasses import dataclassfrom pathlib import Path-from unittest.mock import MagicMockimport pytest@@ -74,13 +73,6 @@ class StubSpeedMeter:# ── Fixtures ──[email protected](scope="session")-def qapp():- from PySide6.QtWidgets import QApplication- app = QApplication.instance() or QApplication([])- yield app--@pytest.fixture()def service(qapp, monkeypatch, tmp_path):from app.config.cfg import cfg@@ -239,13 +231,12 @@ class TestDeduplicateOutput:class TestAdd:- def test_add_emits_signal(self, service):+ def test_add_emits_signal(self, service, qtbot):svc, runner = service- spy = MagicMock()- svc.taskAdded.connect(spy)- task = makeTask()- svc.add(task)- spy.assert_called_once_with(task)+ with qtbot.waitSignal(svc.taskAdded, timeout=1000) as blocker:+ task = makeTask()+ svc.add(task)+ assert blocker.args == [task]def test_add_schedules_task(self, service):svc, runner = service@@ -253,14 +244,12 @@ class TestAdd:svc.add(task)assert len(runner.submitted) == 1- def test_add_duplicate_rejected(self, service):+ def test_add_duplicate_rejected(self, service, qtbot):svc, runner = servicetask = makeTask("dup")svc.add(task)- spy = MagicMock()- svc.taskAdded.connect(spy)- svc.add(task)- spy.assert_not_called()+ with qtbot.assertNotEmitted(svc.taskAdded):+ svc.add(task)def test_task_in_store_after_add(self, service):svc, runner = service@@ -281,14 +270,13 @@ class TestAdd:class TestPause:- def test_pause_emits_signal(self, service):+ def test_pause_emits_signal(self, service, qtbot):svc, runner = servicetask = makeTask("p1")svc.add(task)- spy = MagicMock()- svc.taskPaused.connect(spy)- svc.pause(task)- spy.assert_called_once_with(task)+ with qtbot.waitSignal(svc.taskPaused, timeout=1000) as blocker:+ svc.pause(task)+ assert blocker.args == [task]def test_pause_cancels_work(self, service):svc, runner = service@@ -311,14 +299,13 @@ class TestPause:class TestDelete:- def test_delete_emits_signal(self, service):+ def test_delete_emits_signal(self, service, qtbot):svc, runner = servicetask = makeTask("d1")svc.add(task)- spy = MagicMock()- svc.taskRemoved.connect(spy)- svc.delete(task, shouldDeleteFiles=False)- spy.assert_called_once_with("d1")+ with qtbot.waitSignal(svc.taskRemoved, timeout=1000) as blocker:+ svc.delete(task, shouldDeleteFiles=False)+ assert blocker.args == ["d1"]def test_delete_removes_from_store(self, service):svc, runner = service@@ -355,17 +342,15 @@ class TestQueue:assert svc.runningCount() == 1assert len(runner.submitted) == 2- def test_all_completed_signal(self, service, monkeypatch):+ def test_all_completed_signal(self, service, monkeypatch, qtbot):from app.config.cfg import cfgsvc, runner = servicemonkeypatch.setattr(cfg.maxTaskNum, "value", 1)task = makeTask("ac1")svc.add(task)- spy = MagicMock()- svc.tasksAllCompleted.connect(spy)- _, done, _ = runner.submitted[-1]- done(None)- spy.assert_called_once()+ with qtbot.waitSignal(svc.tasksAllCompleted, timeout=1000):+ _, done, _ = runner.submitted[-1]+ done(None)# ── S7: TaskQueue.moveToFront ──@@ -432,7 +417,7 @@ class TestTaskQueueMoveToFront:class TestMoveToFront:- def test_emits_queueChanged(self, service, monkeypatch):+ def test_emits_queueChanged(self, service, monkeypatch, qtbot):from app.config.cfg import cfgsvc, runner = servicemonkeypatch.setattr(cfg.maxTaskNum, "value", 1)@@ -442,18 +427,14 @@ class TestMoveToFront:svc.add(t1)svc.add(t2)svc.add(t3)- spy = MagicMock()- svc.queueChanged.connect(spy)- svc.moveToFront(["mf3"])- spy.assert_called_once()+ with qtbot.waitSignal(svc.queueChanged, timeout=1000):+ svc.moveToFront(["mf3"])- def test_no_signal_when_none_in_queue(self, service):+ def test_no_signal_when_none_in_queue(self, service, qtbot):svc, runner = servicesvc.add(makeTask("ns1"))- spy = MagicMock()- svc.queueChanged.connect(spy)- svc.moveToFront(["nonexistent"])- spy.assert_not_called()+ with qtbot.assertNotEmitted(svc.queueChanged):+ svc.moveToFront(["nonexistent"])def test_next_dispatched_is_moved_task(self, service, monkeypatch):from app.config.cfg import cfg@@ -495,16 +476,14 @@ class TestMoveToFront:svc.moveToFront(["mx1", "mx4"])assert svc.waitingOrder() == ["mx4", "mx3"]- def test_all_running_no_signal(self, service, monkeypatch):+ def test_all_running_no_signal(self, service, monkeypatch, qtbot):from app.config.cfg import cfgsvc, runner = servicemonkeypatch.setattr(cfg.maxTaskNum, "value", 3)svc.add(makeTask("ar1"))svc.add(makeTask("ar2"))- spy = MagicMock()- svc.queueChanged.connect(spy)- svc.moveToFront(["ar1", "ar2"])- spy.assert_not_called()+ with qtbot.assertNotEmitted(svc.queueChanged):+ svc.moveToFront(["ar1", "ar2"])# ── S7: redownload ──diff --git a/uv.lock b/uv.lockindex 161a4bb4..32dc7295 100644--- a/uv.lock+++ b/uv.lock@@ -178,6 +178,54 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/99/37/e8730c3587a65eb5645d4aba2d27aae48e8003614d6aaf15dda67f702f1f/bidict-0.23.1-py3-none-any.whl", hash = "sha256:5dae8d4d79b552a71cbabc7deb25dfe8ce710b17ff41711e13010ead2abfc3e5", size = 32764, upload-time = "2024-02-18T19:09:04.156Z" },]+[[package]]+name = "brotli"+version = "1.2.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/f7/16/c92ca344d646e71a43b8bb353f0a6490d7f6e06210f8554c8f874e454285/brotli-1.2.0.tar.gz", hash = "sha256:e310f77e41941c13340a95976fe66a8a95b01e783d430eeaf7a2f87e0a57dd0a", size = 7388632, upload-time = "2025-11-05T18:39:42.86Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/7a/ef/f285668811a9e1ddb47a18cb0b437d5fc2760d537a2fe8a57875ad6f8448/brotli-1.2.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:15b33fe93cedc4caaff8a0bd1eb7e3dab1c61bb22a0bf5bdfdfd97cd7da79744", size = 863110, upload-time = "2025-11-05T18:38:12.978Z" },+ { url = "https://files.pythonhosted.org/packages/50/62/a3b77593587010c789a9d6eaa527c79e0848b7b860402cc64bc0bc28a86c/brotli-1.2.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:898be2be399c221d2671d29eed26b6b2713a02c2119168ed914e7d00ceadb56f", size = 445438, upload-time = "2025-11-05T18:38:14.208Z" },+ { url = "https://files.pythonhosted.org/packages/cd/e1/7fadd47f40ce5549dc44493877db40292277db373da5053aff181656e16e/brotli-1.2.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:350c8348f0e76fff0a0fd6c26755d2653863279d086d3aa2c290a6a7251135dd", size = 1534420, upload-time = "2025-11-05T18:38:15.111Z" },+ { url = "https://files.pythonhosted.org/packages/12/8b/1ed2f64054a5a008a4ccd2f271dbba7a5fb1a3067a99f5ceadedd4c1d5a7/brotli-1.2.0-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:2e1ad3fda65ae0d93fec742a128d72e145c9c7a99ee2fcd667785d99eb25a7fe", size = 1632619, upload-time = "2025-11-05T18:38:16.094Z" },+ { url = "https://files.pythonhosted.org/packages/89/5a/7071a621eb2d052d64efd5da2ef55ecdac7c3b0c6e4f9d519e9c66d987ef/brotli-1.2.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:40d918bce2b427a0c4ba189df7a006ac0c7277c180aee4617d99e9ccaaf59e6a", size = 1426014, upload-time = "2025-11-05T18:38:17.177Z" },+ { url = "https://files.pythonhosted.org/packages/26/6d/0971a8ea435af5156acaaccec1a505f981c9c80227633851f2810abd252a/brotli-1.2.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:2a7f1d03727130fc875448b65b127a9ec5d06d19d0148e7554384229706f9d1b", size = 1489661, upload-time = "2025-11-05T18:38:18.41Z" },+ { url = "https://files.pythonhosted.org/packages/f3/75/c1baca8b4ec6c96a03ef8230fab2a785e35297632f402ebb1e78a1e39116/brotli-1.2.0-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:9c79f57faa25d97900bfb119480806d783fba83cd09ee0b33c17623935b05fa3", size = 1599150, upload-time = "2025-11-05T18:38:19.792Z" },+ { url = "https://files.pythonhosted.org/packages/0d/1a/23fcfee1c324fd48a63d7ebf4bac3a4115bdb1b00e600f80f727d850b1ae/brotli-1.2.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:844a8ceb8483fefafc412f85c14f2aae2fb69567bf2a0de53cdb88b73e7c43ae", size = 1493505, upload-time = "2025-11-05T18:38:20.913Z" },+ { url = "https://files.pythonhosted.org/packages/36/e5/12904bbd36afeef53d45a84881a4810ae8810ad7e328a971ebbfd760a0b3/brotli-1.2.0-cp311-cp311-win32.whl", hash = "sha256:aa47441fa3026543513139cb8926a92a8e305ee9c71a6209ef7a97d91640ea03", size = 334451, upload-time = "2025-11-05T18:38:21.94Z" },+ { url = "https://files.pythonhosted.org/packages/02/8b/ecb5761b989629a4758c394b9301607a5880de61ee2ee5fe104b87149ebc/brotli-1.2.0-cp311-cp311-win_amd64.whl", hash = "sha256:022426c9e99fd65d9475dce5c195526f04bb8be8907607e27e747893f6ee3e24", size = 369035, upload-time = "2025-11-05T18:38:22.941Z" },+ { url = "https://files.pythonhosted.org/packages/11/ee/b0a11ab2315c69bb9b45a2aaed022499c9c24a205c3a49c3513b541a7967/brotli-1.2.0-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:35d382625778834a7f3061b15423919aa03e4f5da34ac8e02c074e4b75ab4f84", size = 861543, upload-time = "2025-11-05T18:38:24.183Z" },+ { url = "https://files.pythonhosted.org/packages/e1/2f/29c1459513cd35828e25531ebfcbf3e92a5e49f560b1777a9af7203eb46e/brotli-1.2.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:7a61c06b334bd99bc5ae84f1eeb36bfe01400264b3c352f968c6e30a10f9d08b", size = 444288, upload-time = "2025-11-05T18:38:25.139Z" },+ { url = "https://files.pythonhosted.org/packages/3d/6f/feba03130d5fceadfa3a1bb102cb14650798c848b1df2a808356f939bb16/brotli-1.2.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:acec55bb7c90f1dfc476126f9711a8e81c9af7fb617409a9ee2953115343f08d", size = 1528071, upload-time = "2025-11-05T18:38:26.081Z" },+ { url = "https://files.pythonhosted.org/packages/2b/38/f3abb554eee089bd15471057ba85f47e53a44a462cfce265d9bf7088eb09/brotli-1.2.0-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:260d3692396e1895c5034f204f0db022c056f9e2ac841593a4cf9426e2a3faca", size = 1626913, upload-time = "2025-11-05T18:38:27.284Z" },+ { url = "https://files.pythonhosted.org/packages/03/a7/03aa61fbc3c5cbf99b44d158665f9b0dd3d8059be16c460208d9e385c837/brotli-1.2.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:072e7624b1fc4d601036ab3f4f27942ef772887e876beff0301d261210bca97f", size = 1419762, upload-time = "2025-11-05T18:38:28.295Z" },+ { url = "https://files.pythonhosted.org/packages/21/1b/0374a89ee27d152a5069c356c96b93afd1b94eae83f1e004b57eb6ce2f10/brotli-1.2.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:adedc4a67e15327dfdd04884873c6d5a01d3e3b6f61406f99b1ed4865a2f6d28", size = 1484494, upload-time = "2025-11-05T18:38:29.29Z" },+ { url = "https://files.pythonhosted.org/packages/cf/57/69d4fe84a67aef4f524dcd075c6eee868d7850e85bf01d778a857d8dbe0a/brotli-1.2.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:7a47ce5c2288702e09dc22a44d0ee6152f2c7eda97b3c8482d826a1f3cfc7da7", size = 1593302, upload-time = "2025-11-05T18:38:30.639Z" },+ { url = "https://files.pythonhosted.org/packages/d5/3b/39e13ce78a8e9a621c5df3aeb5fd181fcc8caba8c48a194cd629771f6828/brotli-1.2.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:af43b8711a8264bb4e7d6d9a6d004c3a2019c04c01127a868709ec29962b6036", size = 1487913, upload-time = "2025-11-05T18:38:31.618Z" },+ { url = "https://files.pythonhosted.org/packages/62/28/4d00cb9bd76a6357a66fcd54b4b6d70288385584063f4b07884c1e7286ac/brotli-1.2.0-cp312-cp312-win32.whl", hash = "sha256:e99befa0b48f3cd293dafeacdd0d191804d105d279e0b387a32054c1180f3161", size = 334362, upload-time = "2025-11-05T18:38:32.939Z" },+ { url = "https://files.pythonhosted.org/packages/1c/4e/bc1dcac9498859d5e353c9b153627a3752868a9d5f05ce8dedd81a2354ab/brotli-1.2.0-cp312-cp312-win_amd64.whl", hash = "sha256:b35c13ce241abdd44cb8ca70683f20c0c079728a36a996297adb5334adfc1c44", size = 369115, upload-time = "2025-11-05T18:38:33.765Z" },+ { url = "https://files.pythonhosted.org/packages/6c/d4/4ad5432ac98c73096159d9ce7ffeb82d151c2ac84adcc6168e476bb54674/brotli-1.2.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:9e5825ba2c9998375530504578fd4d5d1059d09621a02065d1b6bfc41a8e05ab", size = 861523, upload-time = "2025-11-05T18:38:34.67Z" },+ { url = "https://files.pythonhosted.org/packages/91/9f/9cc5bd03ee68a85dc4bc89114f7067c056a3c14b3d95f171918c088bf88d/brotli-1.2.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:0cf8c3b8ba93d496b2fae778039e2f5ecc7cff99df84df337ca31d8f2252896c", size = 444289, upload-time = "2025-11-05T18:38:35.6Z" },+ { url = "https://files.pythonhosted.org/packages/2e/b6/fe84227c56a865d16a6614e2c4722864b380cb14b13f3e6bef441e73a85a/brotli-1.2.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c8565e3cdc1808b1a34714b553b262c5de5fbda202285782173ec137fd13709f", size = 1528076, upload-time = "2025-11-05T18:38:36.639Z" },+ { url = "https://files.pythonhosted.org/packages/55/de/de4ae0aaca06c790371cf6e7ee93a024f6b4bb0568727da8c3de112e726c/brotli-1.2.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:26e8d3ecb0ee458a9804f47f21b74845cc823fd1bb19f02272be70774f56e2a6", size = 1626880, upload-time = "2025-11-05T18:38:37.623Z" },+ { url = "https://files.pythonhosted.org/packages/5f/16/a1b22cbea436642e071adcaf8d4b350a2ad02f5e0ad0da879a1be16188a0/brotli-1.2.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:67a91c5187e1eec76a61625c77a6c8c785650f5b576ca732bd33ef58b0dff49c", size = 1419737, upload-time = "2025-11-05T18:38:38.729Z" },+ { url = "https://files.pythonhosted.org/packages/46/63/c968a97cbb3bdbf7f974ef5a6ab467a2879b82afbc5ffb65b8acbb744f95/brotli-1.2.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:4ecdb3b6dc36e6d6e14d3a1bdc6c1057c8cbf80db04031d566eb6080ce283a48", size = 1484440, upload-time = "2025-11-05T18:38:39.916Z" },+ { url = "https://files.pythonhosted.org/packages/06/9d/102c67ea5c9fc171f423e8399e585dabea29b5bc79b05572891e70013cdd/brotli-1.2.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:3e1b35d56856f3ed326b140d3c6d9db91740f22e14b06e840fe4bb1923439a18", size = 1593313, upload-time = "2025-11-05T18:38:41.24Z" },+ { url = "https://files.pythonhosted.org/packages/9e/4a/9526d14fa6b87bc827ba1755a8440e214ff90de03095cacd78a64abe2b7d/brotli-1.2.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:54a50a9dad16b32136b2241ddea9e4df159b41247b2ce6aac0b3276a66a8f1e5", size = 1487945, upload-time = "2025-11-05T18:38:42.277Z" },+ { url = "https://files.pythonhosted.org/packages/5b/e8/3fe1ffed70cbef83c5236166acaed7bb9c766509b157854c80e2f766b38c/brotli-1.2.0-cp313-cp313-win32.whl", hash = "sha256:1b1d6a4efedd53671c793be6dd760fcf2107da3a52331ad9ea429edf0902f27a", size = 334368, upload-time = "2025-11-05T18:38:43.345Z" },+ { url = "https://files.pythonhosted.org/packages/ff/91/e739587be970a113b37b821eae8097aac5a48e5f0eca438c22e4c7dd8648/brotli-1.2.0-cp313-cp313-win_amd64.whl", hash = "sha256:b63daa43d82f0cdabf98dee215b375b4058cce72871fd07934f179885aad16e8", size = 369116, upload-time = "2025-11-05T18:38:44.609Z" },+ { url = "https://files.pythonhosted.org/packages/17/e1/298c2ddf786bb7347a1cd71d63a347a79e5712a7c0cba9e3c3458ebd976f/brotli-1.2.0-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:6c12dad5cd04530323e723787ff762bac749a7b256a5bece32b2243dd5c27b21", size = 863080, upload-time = "2025-11-05T18:38:45.503Z" },+ { url = "https://files.pythonhosted.org/packages/84/0c/aac98e286ba66868b2b3b50338ffbd85a35c7122e9531a73a37a29763d38/brotli-1.2.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:3219bd9e69868e57183316ee19c84e03e8f8b5a1d1f2667e1aa8c2f91cb061ac", size = 445453, upload-time = "2025-11-05T18:38:46.433Z" },+ { url = "https://files.pythonhosted.org/packages/ec/f1/0ca1f3f99ae300372635ab3fe2f7a79fa335fee3d874fa7f9e68575e0e62/brotli-1.2.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:963a08f3bebd8b75ac57661045402da15991468a621f014be54e50f53a58d19e", size = 1528168, upload-time = "2025-11-05T18:38:47.371Z" },+ { url = "https://files.pythonhosted.org/packages/d6/a6/2ebfc8f766d46df8d3e65b880a2e220732395e6d7dc312c1e1244b0f074a/brotli-1.2.0-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:9322b9f8656782414b37e6af884146869d46ab85158201d82bab9abbcb971dc7", size = 1627098, upload-time = "2025-11-05T18:38:48.385Z" },+ { url = "https://files.pythonhosted.org/packages/f3/2f/0976d5b097ff8a22163b10617f76b2557f15f0f39d6a0fe1f02b1a53e92b/brotli-1.2.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:cf9cba6f5b78a2071ec6fb1e7bd39acf35071d90a81231d67e92d637776a6a63", size = 1419861, upload-time = "2025-11-05T18:38:49.372Z" },+ { url = "https://files.pythonhosted.org/packages/9c/97/d76df7176a2ce7616ff94c1fb72d307c9a30d2189fe877f3dd99af00ea5a/brotli-1.2.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7547369c4392b47d30a3467fe8c3330b4f2e0f7730e45e3103d7d636678a808b", size = 1484594, upload-time = "2025-11-05T18:38:50.655Z" },+ { url = "https://files.pythonhosted.org/packages/d3/93/14cf0b1216f43df5609f5b272050b0abd219e0b54ea80b47cef9867b45e7/brotli-1.2.0-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:fc1530af5c3c275b8524f2e24841cbe2599d74462455e9bae5109e9ff42e9361", size = 1593455, upload-time = "2025-11-05T18:38:51.624Z" },+ { url = "https://files.pythonhosted.org/packages/b3/73/3183c9e41ca755713bdf2cc1d0810df742c09484e2e1ddd693bee53877c1/brotli-1.2.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:d2d085ded05278d1c7f65560aae97b3160aeb2ea2c0b3e26204856beccb60888", size = 1488164, upload-time = "2025-11-05T18:38:53.079Z" },+ { url = "https://files.pythonhosted.org/packages/64/6a/0c78d8f3a582859236482fd9fa86a65a60328a00983006bcf6d83b7b2253/brotli-1.2.0-cp314-cp314-win32.whl", hash = "sha256:832c115a020e463c2f67664560449a7bea26b0c1fdd690352addad6d0a08714d", size = 339280, upload-time = "2025-11-05T18:38:54.02Z" },+ { url = "https://files.pythonhosted.org/packages/f5/10/56978295c14794b2c12007b07f3e41ba26acda9257457d7085b0bb3bb90c/brotli-1.2.0-cp314-cp314-win_amd64.whl", hash = "sha256:e7c0af964e0b4e3412a0ebf341ea26ec767fa0b4cf81abb5e897c9338b5ad6a3", size = 375639, upload-time = "2025-11-05T18:38:55.67Z" },+]+[[package]]name = "colorama"version = "0.4.6"@@ -377,9 +425,12 @@ dependencies = [[package.dev-dependencies]dev = [{ name = "aiohttp" },+ { name = "brotli" },{ name = "pytest" },{ name = "pytest-asyncio" },+ { name = "pytest-qt" },{ name = "types-libtorrent" },+ { name = "zstandard" },][package.metadata]@@ -404,9 +455,12 @@ requires-dist = [[package.metadata.requires-dev]dev = [{ name = "aiohttp", specifier = ">=3.14.2" },+ { name = "brotli", specifier = ">=1.1.0" },{ name = "pytest", specifier = ">=9.1.1" },{ name = "pytest-asyncio", specifier = ">=1.4.0" },+ { name = "pytest-qt", specifier = ">=4.5.0" },{ name = "types-libtorrent", specifier = ">=2.0.11.20250816" },+ { name = "zstandard", specifier = ">=0.23.0" },][[package]]@@ -3675,6 +3729,20 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/03/e2/08a497ef684b88559c9cc5f4ad53a37e7b99e727094a86d6ea32536d5d3c/pytest_asyncio-1.4.0-py3-none-any.whl", hash = "sha256:933ca923a23075a87fb7070c0ec272a6848489824d887c85c812670932835aa1", size = 16930, upload-time = "2026-05-26T09:56:02.576Z" },]+[[package]]+name = "pytest-qt"+version = "4.5.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "pluggy" },+ { name = "pytest" },+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/d3/61/8bdec02663c18bf5016709b909411dce04a868710477dc9b9844ffcf8dd2/pytest_qt-4.5.0.tar.gz", hash = "sha256:51620e01c488f065d2036425cbc1cbcf8a6972295105fd285321eb47e66a319f", size = 128702, upload-time = "2025-07-01T17:24:39.889Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/cc/d0/8339b888ad64a3d4e508fed8245a402b503846e1972c10ad60955883dcbb/pytest_qt-4.5.0-py3-none-any.whl", hash = "sha256:ed21ea9b861247f7d18090a26bfbda8fb51d7a8a7b6f776157426ff2ccf26eff", size = 37214, upload-time = "2025-07-01T17:24:38.226Z" },+]+[[package]]name = "pywin32"version = "311"@@ -4114,3 +4182,77 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/bf/f4/ed5c402ac8fde4403ed3366c2716bfddc8a6677ebd59f3d62772cc7fe468/yarl-1.24.5-cp314-cp314t-win_arm64.whl", hash = "sha256:cf139c02f5f23ef6532040a30ff662c00a318c952334f211046b8e60b7f17688", size = 97222, upload-time = "2026-07-20T02:07:41.55Z" },{ url = "https://files.pythonhosted.org/packages/61/02/962c1cbfc401a30c1d034dc67ff395f64b52302c6d62de556c1fca99acc0/yarl-1.24.5-py3-none-any.whl", hash = "sha256:a33700d13d9b7d84fd10947b09ff69fb9a792e519c8cb9764a3ca70baa6c23a7", size = 58612, upload-time = "2026-07-20T02:07:43.461Z" },]++[[package]]+name = "zstandard"+version = "0.25.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/fd/aa/3e0508d5a5dd96529cdc5a97011299056e14c6505b678fd58938792794b1/zstandard-0.25.0.tar.gz", hash = "sha256:7713e1179d162cf5c7906da876ec2ccb9c3a9dcbdffef0cc7f70c3667a205f0b", size = 711513, upload-time = "2025-09-14T22:15:54.002Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/2a/83/c3ca27c363d104980f1c9cee1101cc8ba724ac8c28a033ede6aab89585b1/zstandard-0.25.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:933b65d7680ea337180733cf9e87293cc5500cc0eb3fc8769f4d3c88d724ec5c", size = 795254, upload-time = "2025-09-14T22:16:26.137Z" },+ { url = "https://files.pythonhosted.org/packages/ac/4d/e66465c5411a7cf4866aeadc7d108081d8ceba9bc7abe6b14aa21c671ec3/zstandard-0.25.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:a3f79487c687b1fc69f19e487cd949bf3aae653d181dfb5fde3bf6d18894706f", size = 640559, upload-time = "2025-09-14T22:16:27.973Z" },+ { url = "https://files.pythonhosted.org/packages/12/56/354fe655905f290d3b147b33fe946b0f27e791e4b50a5f004c802cb3eb7b/zstandard-0.25.0-cp311-cp311-manylinux2010_i686.manylinux2014_i686.manylinux_2_12_i686.manylinux_2_17_i686.whl", hash = "sha256:0bbc9a0c65ce0eea3c34a691e3c4b6889f5f3909ba4822ab385fab9057099431", size = 5348020, upload-time = "2025-09-14T22:16:29.523Z" },+ { url = "https://files.pythonhosted.org/packages/3b/13/2b7ed68bd85e69a2069bcc72141d378f22cae5a0f3b353a2c8f50ef30c1b/zstandard-0.25.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:01582723b3ccd6939ab7b3a78622c573799d5d8737b534b86d0e06ac18dbde4a", size = 5058126, upload-time = "2025-09-14T22:16:31.811Z" },+ { url = "https://files.pythonhosted.org/packages/c9/dd/fdaf0674f4b10d92cb120ccff58bbb6626bf8368f00ebfd2a41ba4a0dc99/zstandard-0.25.0-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:5f1ad7bf88535edcf30038f6919abe087f606f62c00a87d7e33e7fc57cb69fcc", size = 5405390, upload-time = "2025-09-14T22:16:33.486Z" },+ { url = "https://files.pythonhosted.org/packages/0f/67/354d1555575bc2490435f90d67ca4dd65238ff2f119f30f72d5cde09c2ad/zstandard-0.25.0-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:06acb75eebeedb77b69048031282737717a63e71e4ae3f77cc0c3b9508320df6", size = 5452914, upload-time = "2025-09-14T22:16:35.277Z" },+ { url = "https://files.pythonhosted.org/packages/bb/1f/e9cfd801a3f9190bf3e759c422bbfd2247db9d7f3d54a56ecde70137791a/zstandard-0.25.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:9300d02ea7c6506f00e627e287e0492a5eb0371ec1670ae852fefffa6164b072", size = 5559635, upload-time = "2025-09-14T22:16:37.141Z" },+ { url = "https://files.pythonhosted.org/packages/21/88/5ba550f797ca953a52d708c8e4f380959e7e3280af029e38fbf47b55916e/zstandard-0.25.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:bfd06b1c5584b657a2892a6014c2f4c20e0db0208c159148fa78c65f7e0b0277", size = 5048277, upload-time = "2025-09-14T22:16:38.807Z" },+ { url = "https://files.pythonhosted.org/packages/46/c0/ca3e533b4fa03112facbe7fbe7779cb1ebec215688e5df576fe5429172e0/zstandard-0.25.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:f373da2c1757bb7f1acaf09369cdc1d51d84131e50d5fa9863982fd626466313", size = 5574377, upload-time = "2025-09-14T22:16:40.523Z" },+ { url = "https://files.pythonhosted.org/packages/12/9b/3fb626390113f272abd0799fd677ea33d5fc3ec185e62e6be534493c4b60/zstandard-0.25.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:6c0e5a65158a7946e7a7affa6418878ef97ab66636f13353b8502d7ea03c8097", size = 4961493, upload-time = "2025-09-14T22:16:43.3Z" },+ { url = "https://files.pythonhosted.org/packages/cb/d3/23094a6b6a4b1343b27ae68249daa17ae0651fcfec9ed4de09d14b940285/zstandard-0.25.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:c8e167d5adf59476fa3e37bee730890e389410c354771a62e3c076c86f9f7778", size = 5269018, upload-time = "2025-09-14T22:16:45.292Z" },+ { url = "https://files.pythonhosted.org/packages/8c/a7/bb5a0c1c0f3f4b5e9d5b55198e39de91e04ba7c205cc46fcb0f95f0383c1/zstandard-0.25.0-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:98750a309eb2f020da61e727de7d7ba3c57c97cf6213f6f6277bb7fb42a8e065", size = 5443672, upload-time = "2025-09-14T22:16:47.076Z" },+ { url = "https://files.pythonhosted.org/packages/27/22/503347aa08d073993f25109c36c8d9f029c7d5949198050962cb568dfa5e/zstandard-0.25.0-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:22a086cff1b6ceca18a8dd6096ec631e430e93a8e70a9ca5efa7561a00f826fa", size = 5822753, upload-time = "2025-09-14T22:16:49.316Z" },+ { url = "https://files.pythonhosted.org/packages/e2/be/94267dc6ee64f0f8ba2b2ae7c7a2df934a816baaa7291db9e1aa77394c3c/zstandard-0.25.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:72d35d7aa0bba323965da807a462b0966c91608ef3a48ba761678cb20ce5d8b7", size = 5366047, upload-time = "2025-09-14T22:16:51.328Z" },+ { url = "https://files.pythonhosted.org/packages/7b/a3/732893eab0a3a7aecff8b99052fecf9f605cf0fb5fb6d0290e36beee47a4/zstandard-0.25.0-cp311-cp311-win32.whl", hash = "sha256:f5aeea11ded7320a84dcdd62a3d95b5186834224a9e55b92ccae35d21a8b63d4", size = 436484, upload-time = "2025-09-14T22:16:55.005Z" },+ { url = "https://files.pythonhosted.org/packages/43/a3/c6155f5c1cce691cb80dfd38627046e50af3ee9ddc5d0b45b9b063bfb8c9/zstandard-0.25.0-cp311-cp311-win_amd64.whl", hash = "sha256:daab68faadb847063d0c56f361a289c4f268706b598afbf9ad113cbe5c38b6b2", size = 506183, upload-time = "2025-09-14T22:16:52.753Z" },+ { url = "https://files.pythonhosted.org/packages/8c/3e/8945ab86a0820cc0e0cdbf38086a92868a9172020fdab8a03ac19662b0e5/zstandard-0.25.0-cp311-cp311-win_arm64.whl", hash = "sha256:22a06c5df3751bb7dc67406f5374734ccee8ed37fc5981bf1ad7041831fa1137", size = 462533, upload-time = "2025-09-14T22:16:53.878Z" },+ { url = "https://files.pythonhosted.org/packages/82/fc/f26eb6ef91ae723a03e16eddb198abcfce2bc5a42e224d44cc8b6765e57e/zstandard-0.25.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:7b3c3a3ab9daa3eed242d6ecceead93aebbb8f5f84318d82cee643e019c4b73b", size = 795738, upload-time = "2025-09-14T22:16:56.237Z" },+ { url = "https://files.pythonhosted.org/packages/aa/1c/d920d64b22f8dd028a8b90e2d756e431a5d86194caa78e3819c7bf53b4b3/zstandard-0.25.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:913cbd31a400febff93b564a23e17c3ed2d56c064006f54efec210d586171c00", size = 640436, upload-time = "2025-09-14T22:16:57.774Z" },+ { url = "https://files.pythonhosted.org/packages/53/6c/288c3f0bd9fcfe9ca41e2c2fbfd17b2097f6af57b62a81161941f09afa76/zstandard-0.25.0-cp312-cp312-manylinux2010_i686.manylinux2014_i686.manylinux_2_12_i686.manylinux_2_17_i686.whl", hash = "sha256:011d388c76b11a0c165374ce660ce2c8efa8e5d87f34996aa80f9c0816698b64", size = 5343019, upload-time = "2025-09-14T22:16:59.302Z" },+ { url = "https://files.pythonhosted.org/packages/1e/15/efef5a2f204a64bdb5571e6161d49f7ef0fffdbca953a615efbec045f60f/zstandard-0.25.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:6dffecc361d079bb48d7caef5d673c88c8988d3d33fb74ab95b7ee6da42652ea", size = 5063012, upload-time = "2025-09-14T22:17:01.156Z" },+ { url = "https://files.pythonhosted.org/packages/b7/37/a6ce629ffdb43959e92e87ebdaeebb5ac81c944b6a75c9c47e300f85abdf/zstandard-0.25.0-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:7149623bba7fdf7e7f24312953bcf73cae103db8cae49f8154dd1eadc8a29ecb", size = 5394148, upload-time = "2025-09-14T22:17:03.091Z" },+ { url = "https://files.pythonhosted.org/packages/e3/79/2bf870b3abeb5c070fe2d670a5a8d1057a8270f125ef7676d29ea900f496/zstandard-0.25.0-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:6a573a35693e03cf1d67799fd01b50ff578515a8aeadd4595d2a7fa9f3ec002a", size = 5451652, upload-time = "2025-09-14T22:17:04.979Z" },+ { url = "https://files.pythonhosted.org/packages/53/60/7be26e610767316c028a2cbedb9a3beabdbe33e2182c373f71a1c0b88f36/zstandard-0.25.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:5a56ba0db2d244117ed744dfa8f6f5b366e14148e00de44723413b2f3938a902", size = 5546993, upload-time = "2025-09-14T22:17:06.781Z" },+ { url = "https://files.pythonhosted.org/packages/85/c7/3483ad9ff0662623f3648479b0380d2de5510abf00990468c286c6b04017/zstandard-0.25.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:10ef2a79ab8e2974e2075fb984e5b9806c64134810fac21576f0668e7ea19f8f", size = 5046806, upload-time = "2025-09-14T22:17:08.415Z" },+ { url = "https://files.pythonhosted.org/packages/08/b3/206883dd25b8d1591a1caa44b54c2aad84badccf2f1de9e2d60a446f9a25/zstandard-0.25.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:aaf21ba8fb76d102b696781bddaa0954b782536446083ae3fdaa6f16b25a1c4b", size = 5576659, upload-time = "2025-09-14T22:17:10.164Z" },+ { url = "https://files.pythonhosted.org/packages/9d/31/76c0779101453e6c117b0ff22565865c54f48f8bd807df2b00c2c404b8e0/zstandard-0.25.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:1869da9571d5e94a85a5e8d57e4e8807b175c9e4a6294e3b66fa4efb074d90f6", size = 4953933, upload-time = "2025-09-14T22:17:11.857Z" },+ { url = "https://files.pythonhosted.org/packages/18/e1/97680c664a1bf9a247a280a053d98e251424af51f1b196c6d52f117c9720/zstandard-0.25.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:809c5bcb2c67cd0ed81e9229d227d4ca28f82d0f778fc5fea624a9def3963f91", size = 5268008, upload-time = "2025-09-14T22:17:13.627Z" },+ { url = "https://files.pythonhosted.org/packages/1e/73/316e4010de585ac798e154e88fd81bb16afc5c5cb1a72eeb16dd37e8024a/zstandard-0.25.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:f27662e4f7dbf9f9c12391cb37b4c4c3cb90ffbd3b1fb9284dadbbb8935fa708", size = 5433517, upload-time = "2025-09-14T22:17:16.103Z" },+ { url = "https://files.pythonhosted.org/packages/5b/60/dd0f8cfa8129c5a0ce3ea6b7f70be5b33d2618013a161e1ff26c2b39787c/zstandard-0.25.0-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:99c0c846e6e61718715a3c9437ccc625de26593fea60189567f0118dc9db7512", size = 5814292, upload-time = "2025-09-14T22:17:17.827Z" },+ { url = "https://files.pythonhosted.org/packages/fc/5f/75aafd4b9d11b5407b641b8e41a57864097663699f23e9ad4dbb91dc6bfe/zstandard-0.25.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:474d2596a2dbc241a556e965fb76002c1ce655445e4e3bf38e5477d413165ffa", size = 5360237, upload-time = "2025-09-14T22:17:19.954Z" },+ { url = "https://files.pythonhosted.org/packages/ff/8d/0309daffea4fcac7981021dbf21cdb2e3427a9e76bafbcdbdf5392ff99a4/zstandard-0.25.0-cp312-cp312-win32.whl", hash = "sha256:23ebc8f17a03133b4426bcc04aabd68f8236eb78c3760f12783385171b0fd8bd", size = 436922, upload-time = "2025-09-14T22:17:24.398Z" },+ { url = "https://files.pythonhosted.org/packages/79/3b/fa54d9015f945330510cb5d0b0501e8253c127cca7ebe8ba46a965df18c5/zstandard-0.25.0-cp312-cp312-win_amd64.whl", hash = "sha256:ffef5a74088f1e09947aecf91011136665152e0b4b359c42be3373897fb39b01", size = 506276, upload-time = "2025-09-14T22:17:21.429Z" },+ { url = "https://files.pythonhosted.org/packages/ea/6b/8b51697e5319b1f9ac71087b0af9a40d8a6288ff8025c36486e0c12abcc4/zstandard-0.25.0-cp312-cp312-win_arm64.whl", hash = "sha256:181eb40e0b6a29b3cd2849f825e0fa34397f649170673d385f3598ae17cca2e9", size = 462679, upload-time = "2025-09-14T22:17:23.147Z" },+ { url = "https://files.pythonhosted.org/packages/35/0b/8df9c4ad06af91d39e94fa96cc010a24ac4ef1378d3efab9223cc8593d40/zstandard-0.25.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:ec996f12524f88e151c339688c3897194821d7f03081ab35d31d1e12ec975e94", size = 795735, upload-time = "2025-09-14T22:17:26.042Z" },+ { url = "https://files.pythonhosted.org/packages/3f/06/9ae96a3e5dcfd119377ba33d4c42a7d89da1efabd5cb3e366b156c45ff4d/zstandard-0.25.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:a1a4ae2dec3993a32247995bdfe367fc3266da832d82f8438c8570f989753de1", size = 640440, upload-time = "2025-09-14T22:17:27.366Z" },+ { url = "https://files.pythonhosted.org/packages/d9/14/933d27204c2bd404229c69f445862454dcc101cd69ef8c6068f15aaec12c/zstandard-0.25.0-cp313-cp313-manylinux2010_i686.manylinux2014_i686.manylinux_2_12_i686.manylinux_2_17_i686.whl", hash = "sha256:e96594a5537722fdfb79951672a2a63aec5ebfb823e7560586f7484819f2a08f", size = 5343070, upload-time = "2025-09-14T22:17:28.896Z" },+ { url = "https://files.pythonhosted.org/packages/6d/db/ddb11011826ed7db9d0e485d13df79b58586bfdec56e5c84a928a9a78c1c/zstandard-0.25.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:bfc4e20784722098822e3eee42b8e576b379ed72cca4a7cb856ae733e62192ea", size = 5063001, upload-time = "2025-09-14T22:17:31.044Z" },+ { url = "https://files.pythonhosted.org/packages/db/00/87466ea3f99599d02a5238498b87bf84a6348290c19571051839ca943777/zstandard-0.25.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:457ed498fc58cdc12fc48f7950e02740d4f7ae9493dd4ab2168a47c93c31298e", size = 5394120, upload-time = "2025-09-14T22:17:32.711Z" },+ { url = "https://files.pythonhosted.org/packages/2b/95/fc5531d9c618a679a20ff6c29e2b3ef1d1f4ad66c5e161ae6ff847d102a9/zstandard-0.25.0-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:fd7a5004eb1980d3cefe26b2685bcb0b17989901a70a1040d1ac86f1d898c551", size = 5451230, upload-time = "2025-09-14T22:17:34.41Z" },+ { url = "https://files.pythonhosted.org/packages/63/4b/e3678b4e776db00f9f7b2fe58e547e8928ef32727d7a1ff01dea010f3f13/zstandard-0.25.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:8e735494da3db08694d26480f1493ad2cf86e99bdd53e8e9771b2752a5c0246a", size = 5547173, upload-time = "2025-09-14T22:17:36.084Z" },+ { url = "https://files.pythonhosted.org/packages/4e/d5/ba05ed95c6b8ec30bd468dfeab20589f2cf709b5c940483e31d991f2ca58/zstandard-0.25.0-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:3a39c94ad7866160a4a46d772e43311a743c316942037671beb264e395bdd611", size = 5046736, upload-time = "2025-09-14T22:17:37.891Z" },+ { url = "https://files.pythonhosted.org/packages/50/d5/870aa06b3a76c73eced65c044b92286a3c4e00554005ff51962deef28e28/zstandard-0.25.0-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:172de1f06947577d3a3005416977cce6168f2261284c02080e7ad0185faeced3", size = 5576368, upload-time = "2025-09-14T22:17:40.206Z" },+ { url = "https://files.pythonhosted.org/packages/5d/35/398dc2ffc89d304d59bc12f0fdd931b4ce455bddf7038a0a67733a25f550/zstandard-0.25.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:3c83b0188c852a47cd13ef3bf9209fb0a77fa5374958b8c53aaa699398c6bd7b", size = 4954022, upload-time = "2025-09-14T22:17:41.879Z" },+ { url = "https://files.pythonhosted.org/packages/9a/5c/36ba1e5507d56d2213202ec2b05e8541734af5f2ce378c5d1ceaf4d88dc4/zstandard-0.25.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:1673b7199bbe763365b81a4f3252b8e80f44c9e323fc42940dc8843bfeaf9851", size = 5267889, upload-time = "2025-09-14T22:17:43.577Z" },+ { url = "https://files.pythonhosted.org/packages/70/e8/2ec6b6fb7358b2ec0113ae202647ca7c0e9d15b61c005ae5225ad0995df5/zstandard-0.25.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:0be7622c37c183406f3dbf0cba104118eb16a4ea7359eeb5752f0794882fc250", size = 5433952, upload-time = "2025-09-14T22:17:45.271Z" },+ { url = "https://files.pythonhosted.org/packages/7b/01/b5f4d4dbc59ef193e870495c6f1275f5b2928e01ff5a81fecb22a06e22fb/zstandard-0.25.0-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:5f5e4c2a23ca271c218ac025bd7d635597048b366d6f31f420aaeb715239fc98", size = 5814054, upload-time = "2025-09-14T22:17:47.08Z" },+ { url = "https://files.pythonhosted.org/packages/b2/e5/fbd822d5c6f427cf158316d012c5a12f233473c2f9c5fe5ab1ae5d21f3d8/zstandard-0.25.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:4f187a0bb61b35119d1926aee039524d1f93aaf38a9916b8c4b78ac8514a0aaf", size = 5360113, upload-time = "2025-09-14T22:17:48.893Z" },+ { url = "https://files.pythonhosted.org/packages/8e/e0/69a553d2047f9a2c7347caa225bb3a63b6d7704ad74610cb7823baa08ed7/zstandard-0.25.0-cp313-cp313-win32.whl", hash = "sha256:7030defa83eef3e51ff26f0b7bfb229f0204b66fe18e04359ce3474ac33cbc09", size = 436936, upload-time = "2025-09-14T22:17:52.658Z" },+ { url = "https://files.pythonhosted.org/packages/d9/82/b9c06c870f3bd8767c201f1edbdf9e8dc34be5b0fbc5682c4f80fe948475/zstandard-0.25.0-cp313-cp313-win_amd64.whl", hash = "sha256:1f830a0dac88719af0ae43b8b2d6aef487d437036468ef3c2ea59c51f9d55fd5", size = 506232, upload-time = "2025-09-14T22:17:50.402Z" },+ { url = "https://files.pythonhosted.org/packages/d4/57/60c3c01243bb81d381c9916e2a6d9e149ab8627c0c7d7abb2d73384b3c0c/zstandard-0.25.0-cp313-cp313-win_arm64.whl", hash = "sha256:85304a43f4d513f5464ceb938aa02c1e78c2943b29f44a750b48b25ac999a049", size = 462671, upload-time = "2025-09-14T22:17:51.533Z" },+ { url = "https://files.pythonhosted.org/packages/3d/5c/f8923b595b55fe49e30612987ad8bf053aef555c14f05bb659dd5dbe3e8a/zstandard-0.25.0-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:e29f0cf06974c899b2c188ef7f783607dbef36da4c242eb6c82dcd8b512855e3", size = 795887, upload-time = "2025-09-14T22:17:54.198Z" },+ { url = "https://files.pythonhosted.org/packages/8d/09/d0a2a14fc3439c5f874042dca72a79c70a532090b7ba0003be73fee37ae2/zstandard-0.25.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:05df5136bc5a011f33cd25bc9f506e7426c0c9b3f9954f056831ce68f3b6689f", size = 640658, upload-time = "2025-09-14T22:17:55.423Z" },+ { url = "https://files.pythonhosted.org/packages/5d/7c/8b6b71b1ddd517f68ffb55e10834388d4f793c49c6b83effaaa05785b0b4/zstandard-0.25.0-cp314-cp314-manylinux2010_i686.manylinux_2_12_i686.manylinux_2_28_i686.whl", hash = "sha256:f604efd28f239cc21b3adb53eb061e2a205dc164be408e553b41ba2ffe0ca15c", size = 5379849, upload-time = "2025-09-14T22:17:57.372Z" },+ { url = "https://files.pythonhosted.org/packages/a4/86/a48e56320d0a17189ab7a42645387334fba2200e904ee47fc5a26c1fd8ca/zstandard-0.25.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:223415140608d0f0da010499eaa8ccdb9af210a543fac54bce15babbcfc78439", size = 5058095, upload-time = "2025-09-14T22:17:59.498Z" },+ { url = "https://files.pythonhosted.org/packages/f8/ad/eb659984ee2c0a779f9d06dbfe45e2dc39d99ff40a319895df2d3d9a48e5/zstandard-0.25.0-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:2e54296a283f3ab5a26fc9b8b5d4978ea0532f37b231644f367aa588930aa043", size = 5551751, upload-time = "2025-09-14T22:18:01.618Z" },+ { url = "https://files.pythonhosted.org/packages/61/b3/b637faea43677eb7bd42ab204dfb7053bd5c4582bfe6b1baefa80ac0c47b/zstandard-0.25.0-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:ca54090275939dc8ec5dea2d2afb400e0f83444b2fc24e07df7fdef677110859", size = 6364818, upload-time = "2025-09-14T22:18:03.769Z" },+ { url = "https://files.pythonhosted.org/packages/31/dc/cc50210e11e465c975462439a492516a73300ab8caa8f5e0902544fd748b/zstandard-0.25.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e09bb6252b6476d8d56100e8147b803befa9a12cea144bbe629dd508800d1ad0", size = 5560402, upload-time = "2025-09-14T22:18:05.954Z" },+ { url = "https://files.pythonhosted.org/packages/c9/ae/56523ae9c142f0c08efd5e868a6da613ae76614eca1305259c3bf6a0ed43/zstandard-0.25.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:a9ec8c642d1ec73287ae3e726792dd86c96f5681eb8df274a757bf62b750eae7", size = 4955108, upload-time = "2025-09-14T22:18:07.68Z" },+ { url = "https://files.pythonhosted.org/packages/98/cf/c899f2d6df0840d5e384cf4c4121458c72802e8bda19691f3b16619f51e9/zstandard-0.25.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:a4089a10e598eae6393756b036e0f419e8c1d60f44a831520f9af41c14216cf2", size = 5269248, upload-time = "2025-09-14T22:18:09.753Z" },+ { url = "https://files.pythonhosted.org/packages/1b/c0/59e912a531d91e1c192d3085fc0f6fb2852753c301a812d856d857ea03c6/zstandard-0.25.0-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:f67e8f1a324a900e75b5e28ffb152bcac9fbed1cc7b43f99cd90f395c4375344", size = 5430330, upload-time = "2025-09-14T22:18:11.966Z" },+ { url = "https://files.pythonhosted.org/packages/a0/1d/7e31db1240de2df22a58e2ea9a93fc6e38cc29353e660c0272b6735d6669/zstandard-0.25.0-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:9654dbc012d8b06fc3d19cc825af3f7bf8ae242226df5f83936cb39f5fdc846c", size = 5811123, upload-time = "2025-09-14T22:18:13.907Z" },+ { url = "https://files.pythonhosted.org/packages/f6/49/fac46df5ad353d50535e118d6983069df68ca5908d4d65b8c466150a4ff1/zstandard-0.25.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:4203ce3b31aec23012d3a4cf4a2ed64d12fea5269c49aed5e4c3611b938e4088", size = 5359591, upload-time = "2025-09-14T22:18:16.465Z" },+ { url = "https://files.pythonhosted.org/packages/c2/38/f249a2050ad1eea0bb364046153942e34abba95dd5520af199aed86fbb49/zstandard-0.25.0-cp314-cp314-win32.whl", hash = "sha256:da469dc041701583e34de852d8634703550348d5822e66a0c827d39b05365b12", size = 444513, upload-time = "2025-09-14T22:18:20.61Z" },+ { url = "https://files.pythonhosted.org/packages/3a/43/241f9615bcf8ba8903b3f0432da069e857fc4fd1783bd26183db53c4804b/zstandard-0.25.0-cp314-cp314-win_amd64.whl", hash = "sha256:c19bcdd826e95671065f8692b5a4aa95c52dc7a02a4c5a0cac46deb879a017a2", size = 516118, upload-time = "2025-09-14T22:18:17.849Z" },+ { url = "https://files.pythonhosted.org/packages/f0/ef/da163ce2450ed4febf6467d77ccb4cd52c4c30ab45624bad26ca0a27260c/zstandard-0.25.0-cp314-cp314-win_arm64.whl", hash = "sha256:d7541afd73985c630bafcd6338d2518ae96060075f9463d7dc14cfb33514383d", size = 476940, upload-time = "2025-09-14T22:18:19.088Z" },+]