From 8a3dc8e039023b60ec13be1a73e785f04df5f852 Mon Sep 17 00:00:00 2001 From: Pea Tyczynska Date: Tue, 30 Oct 2018 17:15:15 +0000 Subject: [PATCH] Refactor --- tests/app/dao/test_fact_notification_status_dao.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/app/dao/test_fact_notification_status_dao.py b/tests/app/dao/test_fact_notification_status_dao.py index 9bf4101eb..c522cbe8e 100644 --- a/tests/app/dao/test_fact_notification_status_dao.py +++ b/tests/app/dao/test_fact_notification_status_dao.py @@ -154,10 +154,7 @@ def test_fetch_notification_status_for_service_for_7_days(notify_db_session): create_ft_notification_status(date(2018, 10, 29), 'sms', service_2) # not included - test keys create_ft_notification_status(date(2018, 10, 29), 'sms', service_1, key_type=KEY_TYPE_TEST) - results = sorted( - fetch_notification_status_for_service_for_7_days(service_1.id), - key=lambda x: (x.bst_date, x.notification_type, x.notification_status) - ) + results = fetch_notification_status_for_service_for_7_days(service_1.id) assert len(results) == 5