generated from coulomb/repo-seed
feat(tasks): adopt canonical task statuses
This commit is contained in:
@@ -68,7 +68,7 @@ def test_archived_workstream_file_requires_confirmation():
|
||||
def test_task_status_update_writes_through_to_task_block():
|
||||
result = classify_task_status_change(
|
||||
current_status="todo",
|
||||
target_status="in_progress",
|
||||
target_status="progress",
|
||||
file_backed=True,
|
||||
task_linked=True,
|
||||
)
|
||||
@@ -80,7 +80,7 @@ def test_task_status_update_writes_through_to_task_block():
|
||||
def test_task_without_file_is_deferred():
|
||||
result = classify_task_status_change(
|
||||
current_status="todo",
|
||||
target_status="in_progress",
|
||||
target_status="progress",
|
||||
file_backed=False,
|
||||
task_linked=True,
|
||||
)
|
||||
@@ -92,7 +92,7 @@ def test_task_without_file_is_deferred():
|
||||
def test_unlinked_task_is_deferred_until_link_repaired():
|
||||
result = classify_task_status_change(
|
||||
current_status="todo",
|
||||
target_status="in_progress",
|
||||
target_status="progress",
|
||||
file_backed=True,
|
||||
task_linked=False,
|
||||
)
|
||||
@@ -101,22 +101,22 @@ def test_unlinked_task_is_deferred_until_link_repaired():
|
||||
assert "not linked" in result.reason
|
||||
|
||||
|
||||
def test_blocked_task_requires_blocking_reason():
|
||||
def test_wait_task_requires_blocking_reason():
|
||||
result = classify_task_status_change(
|
||||
current_status="todo",
|
||||
target_status="blocked",
|
||||
target_status="wait",
|
||||
file_backed=True,
|
||||
task_linked=True,
|
||||
)
|
||||
|
||||
assert result.reconciliation_class == ReconciliationClass.HUMAN_CONFIRMATION
|
||||
assert "blocking reason" in result.reason
|
||||
assert "wait condition" in result.reason
|
||||
|
||||
|
||||
def test_blocked_task_with_reason_writes_through():
|
||||
def test_wait_task_with_reason_writes_through():
|
||||
result = classify_task_status_change(
|
||||
current_status="todo",
|
||||
target_status="blocked",
|
||||
target_status="wait",
|
||||
file_backed=True,
|
||||
task_linked=True,
|
||||
blocking_reason="Waiting on dependency",
|
||||
|
||||
Reference in New Issue
Block a user