fix commit hash

This commit is contained in:
Kenneth Kehl
2024-03-14 13:26:05 -07:00
parent 3aacdcb3ef
commit e4087ca9d5
2 changed files with 5 additions and 1 deletions

View File

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

View File

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