From 5c6a5f952da3ae415eb76910c464e81b729e534f Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Fri, 15 Nov 2024 09:44:49 -0800 Subject: [PATCH] fix tests --- tests/app/user/test_rest_verify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/app/user/test_rest_verify.py b/tests/app/user/test_rest_verify.py index 5c6eb6f5e..17a6e633d 100644 --- a/tests/app/user/test_rest_verify.py +++ b/tests/app/user/test_rest_verify.py @@ -224,7 +224,7 @@ def test_send_user_sms_code(client, sample_user, sms_code_template, mocker): assert mocked.call_count == 1 assert db.session.execute(select(VerifyCode)).scalars().one().check_code("11111") - notification = db.session.execute(select(Notification)).one() + notification = db.session.execute(select(Notification)).scalars().one() assert notification.personalisation == {"verify_code": "11111"} assert notification.to == "1" assert str(notification.service_id) == current_app.config["NOTIFY_SERVICE_ID"]