Added UTC to formatter return strings and appropriate tests (#617)

Co-authored-by: Andrew Shumway <ashumway@flexion.us>
This commit is contained in:
Andrew Shumway
2023-07-27 09:22:05 -06:00
committed by GitHub
parent 08d612166a
commit 34fef6954c
10 changed files with 76 additions and 76 deletions

View File

@@ -472,7 +472,7 @@ def test_caseworker_sees_template_page_if_template_is_deleted(
content = str(page)
assert url_for("main.send_one_off", service_id=SERVICE_ONE_ID, template_id=fake_uuid) not in content
assert page.select('p.hint')[0].text.strip() == 'This template was deleted today at 15:00.'
assert page.select('p.hint')[0].text.strip() == 'This template was deleted today at 15:00 UTC.'
mock_get_deleted_template.assert_called_with(SERVICE_ONE_ID, template_id, None)
@@ -1571,7 +1571,7 @@ def test_should_show_page_for_a_deleted_template(
content = str(page)
assert url_for("main.edit_service_template", service_id=SERVICE_ONE_ID, template_id=fake_uuid) not in content
assert url_for("main.send_one_off", service_id=SERVICE_ONE_ID, template_id=fake_uuid) not in content
assert page.select('p.hint')[0].text.strip() == 'This template was deleted today at 15:00.'
assert page.select('p.hint')[0].text.strip() == 'This template was deleted today at 15:00 UTC.'
assert 'Delete this template' not in page.select_one('main').text
mock_get_deleted_template.assert_called_with(SERVICE_ONE_ID, template_id, None)