From 1c7b71bccef6438b799c4eb0c6dcc678b4dd57f3 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Tue, 7 Jul 2026 11:03:28 +0000 Subject: [PATCH] =?UTF-8?q?A=20run=20with=20finished=20and=20queued=20batc?= =?UTF-8?q?hes=20rolls=20up=20in=20progress,=20not=20waiting=20?= =?UTF-8?q?=F0=9F=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- tests/domain/tasks/test_tasks.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/domain/tasks/test_tasks.py b/tests/domain/tasks/test_tasks.py index ba82412b1..ff30a3671 100644 --- a/tests/domain/tasks/test_tasks.py +++ b/tests/domain/tasks/test_tasks.py @@ -105,6 +105,18 @@ def test_recalculate_any_in_progress_marks_in_progress() -> None: assert t.job_completed is None +def test_recalculate_complete_and_waiting_mix_marks_in_progress() -> None: + # arrange + t = Task.create(task_source="manual:test") + + # act + t.recalculate_from_subtasks([SubTaskStatus.COMPLETE, SubTaskStatus.WAITING]) + + # assert + assert t.status is TaskStatus.IN_PROGRESS + assert t.job_completed is None + + def test_recalculate_all_complete_marks_complete() -> None: # arrange t = Task.create(task_source="manual:test")