Turn two State Hub sync failures into clean outcomes.
An over-long blocked_on now returns a 422 instead of a 500, and decided decision records such as 'approved' map onto the hub's made type. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Assistant: claude-code Assistant-Model: opus Assistant-Process: 57383@bnt-lap001 Assistant-Session: ef71febe-2a37-4c34-a979-2508ca973c91
This commit is contained in:
parent
2b5d8f90f8
commit
7d992821fb
5 changed files with 79 additions and 4 deletions
10
tests/test_task_wait_qualifiers_schema.py
Normal file
10
tests/test_task_wait_qualifiers_schema.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import pytest
|
||||
from pydantic import ValidationError
|
||||
|
||||
from api.schemas.task import TaskUpdate
|
||||
|
||||
|
||||
def test_blocked_on_longer_than_column_is_rejected_not_a_500():
|
||||
TaskUpdate(blocked_on="x" * 200)
|
||||
with pytest.raises(ValidationError, match="blocked_on"):
|
||||
TaskUpdate(blocked_on="x" * 201)
|
||||
Loading…
Add table
Add a link
Reference in a new issue