kin: KIN-074 Попытка переключить review на auto приводит к 400 ошибке

This commit is contained in:
Gros Frumos 2026-03-16 10:11:01 +02:00
parent e4566d51a6
commit cb099030ce
2 changed files with 569 additions and 0 deletions

View file

@ -394,6 +394,13 @@ def test_patch_task_execution_mode_auto_rejected(client):
assert r.status_code == 400
def test_patch_task_execution_mode_review_accepted(client):
"""KIN-074: execution_mode='review' принимается (200) — регрессия после фикса frontend."""
r = client.patch("/api/tasks/P1-001", json={"execution_mode": "review"})
assert r.status_code == 200
assert r.json()["execution_mode"] == "review"
# ---------------------------------------------------------------------------
# KIN-022 — blocked_reason: регрессионные тесты
# ---------------------------------------------------------------------------