Phase 1B: Unify plugins from company to contact

This commit is contained in:
Agent Zero
2026-07-23 17:18:38 +02:00
parent 879106c4eb
commit 5d79b4f613
4 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -219,7 +219,7 @@ class TestAuditLog:
# Check audit_log table
from sqlalchemy import select as sel
q = sel(AuditLog).where(AuditLog.entity_type == "company", AuditLog.action == "create")
q = sel(AuditLog).where(AuditLog.entity_type == "contact", AuditLog.action == "create")
result = await db_session.execute(q)
entries = result.scalars().all()
assert len(entries) >= 1
@@ -237,7 +237,7 @@ class TestAuditLog:
from sqlalchemy import select as sel
q = sel(AuditLog).where(AuditLog.entity_type == "company", AuditLog.action == "update")
q = sel(AuditLog).where(AuditLog.entity_type == "contact", AuditLog.action == "update")
result = await db_session.execute(q)
entries = result.scalars().all()
assert len(entries) >= 1
@@ -254,7 +254,7 @@ class TestAuditLog:
from sqlalchemy import select as sel
q = sel(AuditLog).where(AuditLog.entity_type == "company", AuditLog.action == "delete")
q = sel(AuditLog).where(AuditLog.entity_type == "contact", AuditLog.action == "delete")
result = await db_session.execute(q)
entries = result.scalars().all()
assert len(entries) >= 1