From 09eff0fb50d548f7db41d11dd0ab7ac6f60f0464 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Wed, 30 Dec 2020 09:50:11 +0000 Subject: [PATCH] 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. --- tests/app/main/views/test_feedback.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/app/main/views/test_feedback.py b/tests/app/main/views/test_feedback.py index 4b3f38613..d7f9aad3d 100644 --- a/tests/app/main/views/test_feedback.py +++ b/tests/app/main/views/test_feedback.py @@ -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,