fix tests

This commit is contained in:
Kenneth Kehl
2025-01-10 13:51:35 -08:00
parent 1eea4bb35b
commit 9685b09677
2 changed files with 4 additions and 0 deletions

View File

@@ -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")

View File

@@ -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"