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
+5
View File
@@ -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