This commit is contained in:
Kenneth Kehl
2024-11-15 13:42:27 -08:00
parent 3eadfb2242
commit bc4d4c9735
8 changed files with 70 additions and 51 deletions

View File

@@ -100,9 +100,9 @@ def test_persist_notification_creates_and_save_to_db(
reply_to_text=sample_template.service.get_default_sms_sender(),
)
assert Notification.query.get(notification.id) is not None
assert db.session.get(Notification, notification.id) is not None
notification_from_db = Notification.query.one()
notification_from_db = db.session.execute(select(Notification)).scalars().one()
assert notification_from_db.id == notification.id
assert notification_from_db.template_id == notification.template_id