Initial roborto accounting implementation

This commit is contained in:
rob
2026-08-30 07:16:21 +01:00
commit 97a75d0243
145 changed files with 5525 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
from roborto_accounting.domain.clients import snapshot_client
from roborto_accounting.persistence.models import Client
def test_client_snapshot_is_immutable_and_independent():
client = Client(name="Example Ltd", email="old@example.test")
snapshot = snapshot_client(client)
client.email = "new@example.test"
assert snapshot.email == "old@example.test"
try:
snapshot.name = "Changed"
except Exception:
pass
else:
raise AssertionError("client snapshots must be immutable")