From e4087ca9d5f0608cdb18d2ade5abffce0b32eec8 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Thu, 14 Mar 2024 13:26:05 -0700 Subject: [PATCH] fix commit hash --- app/main/views/send.py | 4 +++- tests/app/test_utils.py | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/main/views/send.py b/app/main/views/send.py index 6ef2afc77..8853b7fc3 100644 --- a/app/main/views/send.py +++ b/app/main/views/send.py @@ -524,7 +524,9 @@ def _check_messages(service_id, template_id, upload_id, preview_row): for user in Users(service_id): allow_list.extend([user.name, user.mobile_number, user.email_address]) # Failed sms number - allow_list.extend(["simulated user (fail)", "+14254147167", "simulated@simulated.gov"]) + allow_list.extend( + ["simulated user (fail)", "+14254147167", "simulated@simulated.gov"] + ) # Success sms number allow_list.extend( ["simulated user (success)", "+14254147755", "simulatedtwo@simulated.gov"] diff --git a/tests/app/test_utils.py b/tests/app/test_utils.py index 40a10cfb5..950eb830b 100644 --- a/tests/app/test_utils.py +++ b/tests/app/test_utils.py @@ -1,4 +1,5 @@ import pytest +from flask import current_app from app.utils import merge_jsonlike @@ -50,6 +51,7 @@ def test_merge_jsonlike_merges_jsonlike_objects_correctly( merge_jsonlike(source_object, destination_object) assert source_object == expected_result + def test_commit_hash(): # Assert that we have trimmed the default (unknown) commit hash to seven characters # The real commit hash is supplied at deploy time.