fix(tests): backend test suite - app version, DB roles, admin RBAC, companies route, field names, DeletionLog, ABAC, imports

This commit is contained in:
Agent Zero
2026-08-08 08:09:23 +02:00
parent 1ed97d6727
commit 1b1cbc05dd
16 changed files with 457 additions and 61 deletions
+6 -6
View File
@@ -684,8 +684,8 @@ async def test_index_entity_success(db_session: AsyncSession):
await db_session.flush()
contact = Contact(
tenant_id=tenant.id,
first_name="John",
last_name="Doe",
firstname="John",
surname="Doe",
email="john@example.com",
created_by=user.id,
updated_by=user.id,
@@ -811,8 +811,8 @@ async def test_hybrid_search_with_results(db_session: AsyncSession):
await db_session.flush()
contact = Contact(
tenant_id=tenant.id,
first_name="Search",
last_name="Test",
firstname="Search",
surname="Test",
email="searchtest@example.com",
created_by=user.id,
updated_by=user.id,
@@ -973,8 +973,8 @@ async def test_index_contact(mock_index_entity, mock_factory, db_session: AsyncS
await db_session.flush()
contact = Contact(
tenant_id=tenant.id,
first_name="Index",
last_name="Contact",
firstname="Index",
surname="Contact",
email="indexcontact@example.com",
created_by=user.id,
updated_by=user.id,