Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jmaupetit committed Oct 18, 2024
1 parent ad2229b commit b992f0a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/api/tests/schemas/test_audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ def test_auditable_schema_audits_dynamic_fk(db_session):
updated_by_id=user.id,
)

assert len(operateur.audits) == 0

# Update operateur
operateur.contact_operateur = "[email protected]"
operateur.telephone_operateur = "+33144276352"
Expand All @@ -107,9 +109,8 @@ def test_auditable_schema_audits_dynamic_fk(db_session):
assert operateur.audits[0].target_id == operateur.id
assert operateur.audits[0].updated_at == operateur.updated_at
assert operateur.audits[0].changes == {
"updated_by_id": ["None", str(user.id)],
"contact_operateur": ["[email protected]", "[email protected]"],
"telephone_operateur": ["tel:+33-1-44-27-63-51", "tel:+33-1-44-27-63-52"],
"contact_operateur": ["[email protected]", "[email protected]"],
"telephone_operateur": ["tel:+33-1-44-27-63-50", "tel:+33-1-44-27-63-52"],
}

# Update operateur once again
Expand Down

0 comments on commit b992f0a

Please sign in to comment.