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