From 9685b09677759e1fca73177b01b4c302403fa971 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Fri, 10 Jan 2025 13:51:35 -0800 Subject: [PATCH] fix tests --- app/models.py | 3 +++ tests/app/celery/test_tasks.py | 1 + 2 files changed, 4 insertions(+) diff --git a/app/models.py b/app/models.py index ff734f8bf..50c47ec76 100644 --- a/app/models.py +++ b/app/models.py @@ -1714,6 +1714,9 @@ class Notification(db.Model): pass # do nothing because we don't have the message id yet else: fields[column.name] = value + current_app.logger.warning(f"FIELDS {fields}") + print(f"FIELDS {fields}", flush=True) + return fields raise ValueError("Provided object is not a SQLAlchemy instance") diff --git a/tests/app/celery/test_tasks.py b/tests/app/celery/test_tasks.py index e77b64062..292879f9a 100644 --- a/tests/app/celery/test_tasks.py +++ b/tests/app/celery/test_tasks.py @@ -945,6 +945,7 @@ def test_save_sms_uses_sms_sender_reply_to_text(mocker, notify_db_session): notification_id, encryption.encrypt(notification), ) + batch_insert_notifications() persisted_notification = Notification.query.one() assert persisted_notification.reply_to_text == "+12028675309"