Add cancelled status for tasks

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Gros Frumos 2026-03-15 18:22:17 +02:00
parent 6e872121eb
commit bf38532f59
5 changed files with 7 additions and 6 deletions

View file

@ -256,9 +256,9 @@ def test_patch_task_status_persisted(client):
assert r.json()["status"] == "blocked"
@pytest.mark.parametrize("status", ["pending", "in_progress", "review", "done", "blocked"])
@pytest.mark.parametrize("status", ["pending", "in_progress", "review", "done", "blocked", "cancelled"])
def test_patch_task_all_valid_statuses(client, status):
"""Все 5 допустимых статусов должны приниматься."""
"""Все 6 допустимых статусов должны приниматься."""
r = client.patch("/api/tasks/P1-001", json={"status": status})
assert r.status_code == 200
assert r.json()["status"] == status