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
+12 -12
View File
@@ -519,8 +519,8 @@ async def test_get_contact_mails_handler(db_session: AsyncSession):
await db_session.flush()
contact = Contact(
tenant_id=tenant.id,
first_name="CT",
last_name="Contact",
firstname="CT",
surname="Contact",
email="ctcontact@example.com",
created_by=user.id,
updated_by=user.id,
@@ -593,8 +593,8 @@ async def test_get_contact_history_handler(db_session: AsyncSession):
await db_session.flush()
contact = Contact(
tenant_id=tenant.id,
first_name="Hist",
last_name="Contact",
firstname="Hist",
surname="Contact",
email="hist@example.com",
created_by=user.id,
updated_by=user.id,
@@ -650,8 +650,8 @@ async def test_search_related_handler(db_session: AsyncSession):
await db_session.flush()
contact = Contact(
tenant_id=tenant.id,
first_name="Rel",
last_name="Contact",
firstname="Rel",
surname="Contact",
email="rel@example.com",
created_by=user.id,
updated_by=user.id,
@@ -789,8 +789,8 @@ async def test_get_open_tasks_handler(db_session: AsyncSession):
await db_session.flush()
contact = Contact(
tenant_id=tenant.id,
first_name="Task",
last_name="Contact",
firstname="Task",
surname="Contact",
email="task@example.com",
created_by=user.id,
updated_by=user.id,
@@ -905,8 +905,8 @@ async def test_gather_context_contact(db_session: AsyncSession):
await db_session.flush()
contact = Contact(
tenant_id=tenant.id,
first_name="GC",
last_name="Contact",
firstname="GC",
surname="Contact",
email="gc@example.com",
created_by=user.id,
updated_by=user.id,
@@ -1565,8 +1565,8 @@ async def test_deep_analysis(mock_create_session, db_session: AsyncSession):
await db_session.flush()
contact = Contact(
tenant_id=tenant.id,
first_name="DA",
last_name="Contact",
firstname="DA",
surname="Contact",
email="da@example.com",
created_by=user.id,
updated_by=user.id,