From df325c78b7c21bf4af9e4856947bb0aec3920a4d Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Tue, 27 Oct 2020 17:25:58 +0000 Subject: [PATCH] There seems to be a UTC time bug around the dao_get_uploads_by_service_id function. To fix the build tonight I'm putting freezing the time for the test. But will investigate further tomorrow. --- tests/app/dao/test_uploads_dao.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/app/dao/test_uploads_dao.py b/tests/app/dao/test_uploads_dao.py index 201904674..44de4415a 100644 --- a/tests/app/dao/test_uploads_dao.py +++ b/tests/app/dao/test_uploads_dao.py @@ -189,6 +189,7 @@ def test_get_uploads_orders_by_processing_started_desc(sample_template): assert results[1].id == upload_2.id +@freeze_time("2020-10-27 16:15") # GMT time def test_get_uploads_orders_by_processing_started_and_created_at_desc(sample_template): letter_template = create_uploaded_template(sample_template.service)