@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user