mirror of
https://github.com/GSA/notifications-api.git
synced 2026-05-05 16:48:31 -04:00
Refactor postcode validation to use utils
We don’t need to reformat the postcode here once template preview takes care of it when rendering the PDF. It’s better (and less code) to store what people give us, so we give them back the same thing.
This commit is contained in:
@@ -1048,7 +1048,7 @@ def test_save_letter_saves_letter_to_database_with_formatted_postcode(mocker, no
|
||||
|
||||
notification_db = Notification.query.one()
|
||||
assert notification_db.id == notification_id
|
||||
assert notification_db.personalisation["postcode"] == "SE16 4SA"
|
||||
assert notification_db.personalisation["postcode"] == "se1 64sa"
|
||||
|
||||
|
||||
def test_save_letter_saves_letter_to_database_right_reply_to(mocker, notify_db_session):
|
||||
|
||||
Reference in New Issue
Block a user