Phase 1B: Unify plugins from company to contact
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user