Fix test that fails after 5:30pm

When someone goes to report a problem out of business hours they get
redirected to the page that asks them whether or not its an emergency.
This test was not expecting that redirect. This commit fixes it by
freezing the time around lunchtime on a Wednesday.
This commit is contained in:
Chris Hill-Scott
2020-12-30 09:50:11 +00:00
parent 223003517a
commit 09eff0fb50

View File

@@ -475,6 +475,7 @@ def test_triage_redirects_to_correct_url(
partial(url_for, 'main.support')
),
])
@freeze_time('2012-12-12 12:12')
def test_back_link_from_form(
client_request,
mock_get_non_empty_organisations_and_services_for_user,