Update test_client_note_model.py

This commit is contained in:
Dries Peeters
2025-10-24 17:22:06 +02:00
parent 87e3e37bb0
commit 824e2ba880

View File

@@ -168,7 +168,8 @@ def test_client_note_author_name_property(app, user, test_client):
# Test with full name
user.full_name = "Test User Full Name"
db.session.commit()
# No need to refresh - the relationship will fetch the updated value
# Expire the cached relationship so it reloads with updated data
db.session.expire(note, ['author'])
assert note.author_name == "Test User Full Name"