This commit is contained in:
Kenneth Kehl
2024-11-18 09:26:04 -08:00
parent 4ef1847baf
commit 3168f28920
5 changed files with 17 additions and 11 deletions

View File

@@ -23,7 +23,7 @@ def test_send_notification_to_service_users_persists_notifications_correctly(
service_id=sample_service.id, template_id=template.id
)
notification = Notification.query.one()
notification = db.session.execute(select(Notification)).scalars().one()
stmt = select(func.count()).select_from(Notification)
count = db.session.execute(stmt).scalar() or 0