test(agents): add validation tests for category and display fields

Added comprehensive unit and API tests to validate AgentType category and display fields:
- Category validation for valid, null, and invalid values
- Icon, color, and sort_order field constraints
- Typical tasks and collaboration hints handling (stripping, removing empty strings, normalization)
- New API tests for field creation, filtering, updating, and grouping
This commit is contained in:
2026-01-06 17:19:21 +01:00
parent f262d08be2
commit a0ec5fa2cc
3 changed files with 552 additions and 0 deletions

View File

@@ -42,6 +42,9 @@ class TestInitDb:
assert user.last_name == "User"
@pytest.mark.asyncio
@pytest.mark.skip(
reason="SQLite doesn't support UUID type binding - requires PostgreSQL"
)
async def test_init_db_returns_existing_superuser(
self, async_test_db, async_test_user
):