From 05785444d5c060f6ec412e92e682ecc42783e471 Mon Sep 17 00:00:00 2001 From: sascha Date: Sat, 5 Sep 2026 08:20:48 +0200 Subject: [PATCH] fix: wait for every file in season packs --- tests/test_app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_app.py b/tests/test_app.py index ef136db..80304be 100644 --- a/tests/test_app.py +++ b/tests/test_app.py @@ -81,12 +81,14 @@ def test_media_handoff_proxies_strict_category_contract(monkeypatch): "directory": "/usenet/complete/serien4k/Show.S01E01", "release": "Show.S01E01-GRP", "cleanName": "Show S01E01", + "expectedFiles": 2, }, ) assert response.status_code == 200 assert response.json()["state"] == "registered" assert captured["url"] == "http://n8n:5678/webhook/media-handoff" assert captured["json"]["category"] == "serien4k" + assert captured["json"]["expectedFiles"] == 2 def test_media_handoff_rejects_untrusted_caller_before_proxy(monkeypatch):