notify-api-742 don't write phone numbers to db

This commit is contained in:
Kenneth Kehl
2024-01-16 11:21:24 -08:00
parent 5af876a963
commit f9f1013f5b
16 changed files with 124 additions and 76 deletions

View File

@@ -377,8 +377,8 @@ def test_persist_sms_notification_stores_normalised_number(
)
persisted_notification = Notification.query.all()[0]
assert persisted_notification.to == recipient
assert persisted_notification.normalised_to == expected_recipient_normalised
assert persisted_notification.to == "1"
assert persisted_notification.normalised_to == "1"
@pytest.mark.parametrize(
@@ -401,8 +401,8 @@ def test_persist_email_notification_stores_normalised_email(
)
persisted_notification = Notification.query.all()[0]
assert persisted_notification.to == recipient
assert persisted_notification.normalised_to == expected_recipient_normalised
assert persisted_notification.to == "1"
assert persisted_notification.normalised_to == "1"
def test_persist_notification_with_billable_units_stores_correct_info(mocker):