Solve Importarr queue controls issues #1 #2 #3

This commit is contained in:
2026-07-29 13:19:55 +02:00
parent 126ec9c1f4
commit af2808189d
7 changed files with 191 additions and 29 deletions
+11
View File
@@ -27,6 +27,12 @@ def test_queue_item_not_ready():
assert result.state == "processing"
def test_force_status_overrides_queue_and_processing_status():
result = classify_history_item(item(status="Extracting"), {"1"}, "manual", ROOT, force_status=True)
assert result.ready
assert result.storage == ROOT / "Movie"
def test_post_processing_not_ready():
for status in ["Queued", "Repairing", "Extracting", "Moving"]:
assert classify_history_item(item(status=status), set(), "manual", ROOT).state == "processing"
@@ -39,3 +45,8 @@ def test_empty_storage_unknown():
def test_unpack_path_not_ready():
result = classify_history_item(item(storage=str(ROOT / "_UNPACK_Movie")), set(), "manual", ROOT)
assert result.state == "processing"
def test_force_status_keeps_transient_path_safety():
result = classify_history_item(item(storage=str(ROOT / "_UNPACK_Movie"), status="Extracting"), {"1"}, "manual", ROOT, force_status=True)
assert result.state == "processing"