From f5ced76e63c9a61e1e27f3a937f8497f51e6ad70 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Tue, 21 Jan 2020 14:09:54 +0000 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20mock=20job=20processing=20in=20?= =?UTF-8?q?the=20future?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It could hide bugs or make the tests harder to understand later on if what they’re testing is an impossible scenario. --- tests/app/main/views/test_jobs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/app/main/views/test_jobs.py b/tests/app/main/views/test_jobs.py index b54e2431f..1160a337c 100644 --- a/tests/app/main/views/test_jobs.py +++ b/tests/app/main/views/test_jobs.py @@ -330,7 +330,7 @@ def test_should_show_job_without_notifications( assert page.select_one('tbody').text.strip() == 'No messages to show yet…' -@freeze_time("2020-01-10 0:0:0") +@freeze_time("2020-01-10 1:0:0") @pytest.mark.parametrize('created_at, processing_started, expected_message', ( # Recently created, not yet started (datetime(2020, 1, 10, 0, 0, 0), None, (