fix(tests): backend test suite - app version, DB roles, admin RBAC, companies route, field names, DeletionLog, ABAC, imports
This commit is contained in:
@@ -39,3 +39,8 @@ class EntityHistory(Base, TenantMixin, OwnedMixin):
|
||||
created_at: Mapped[datetime] = mapped_column(
|
||||
DateTime(timezone=True), nullable=False, server_default=func.now(), index=True
|
||||
)
|
||||
|
||||
@property
|
||||
def entity_snapshot(self) -> dict[str, Any] | None:
|
||||
"""Compatibility alias for snapshot_before (used by DeletionLog tests)."""
|
||||
return self.snapshot_before
|
||||
|
||||
Reference in New Issue
Block a user