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"