fix filter_bys

This commit is contained in:
Kenneth Kehl
2024-12-19 11:10:03 -08:00
parent 659169366c
commit 3388371428
35 changed files with 245 additions and 140 deletions

View File

@@ -111,7 +111,9 @@ def test_should_send_personalised_template_to_correct_sms_provider_and_persist(
)
notification = (
db.session.execute(select(Notification).filter_by(id=db_notification.id))
db.session.execute(
select(Notification).where(Notification.id == db_notification.id)
)
.scalars()
.one()
)
@@ -159,7 +161,9 @@ def test_should_send_personalised_template_to_correct_email_provider_and_persist
)
notification = (
db.session.execute(select(Notification).filter_by(id=db_notification.id))
db.session.execute(
select(Notification).where(Notification.id == db_notification.id)
)
.scalars()
.one()
)