mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
A run with finished and queued batches rolls up in progress, not waiting 🟥
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
71a86f87fc
commit
1c7b71bcce
1 changed files with 12 additions and 0 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue