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
10 lines
297 B
Python
10 lines
297 B
Python
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)
|