refactor(api): deduplicate TextToAudioPayload and MessageListQuery into controller_schemas.py (#34757)

This commit is contained in:
Jake Armstrong
2026-04-13 05:27:35 +00:00
committed by GitHub
parent 7dd507af04
commit 9121f24181
4 changed files with 12 additions and 33 deletions
@@ -198,7 +198,7 @@ class TestMessageListQuery:
assert q.limit == 20
def test_invalid_conversation_id(self) -> None:
with pytest.raises(ValidationError, match="not a valid uuid"):
with pytest.raises(ValidationError, match="must be a valid UUID"):
MessageListQuery(conversation_id="bad")
def test_limit_bounds(self) -> None:
@@ -216,7 +216,7 @@ class TestMessageListQuery:
def test_invalid_first_id(self) -> None:
cid = str(uuid4())
with pytest.raises(ValidationError, match="not a valid uuid"):
with pytest.raises(ValidationError, match="must be a valid UUID"):
MessageListQuery(conversation_id=cid, first_id="invalid")