diff --git a/app/clients/sms/__init__.py b/app/clients/sms/__init__.py index 38f3c55c9..a862680e0 100644 --- a/app/clients/sms/__init__.py +++ b/app/clients/sms/__init__.py @@ -59,7 +59,7 @@ class SmsClient(Client): finally: elapsed_time = monotonic() - start_time self.statsd_client.timing(f"clients.{self.name}.request-time", elapsed_time) - self.current_app.logger.info("Reach request for {} finished in {}".format(reference, elapsed_time)) + self.current_app.logger.info(f"{self.name} request for {reference} finished in {elapsed_time}") return response diff --git a/tests/app/dao/test_fact_notification_status_dao.py b/tests/app/dao/test_fact_notification_status_dao.py index 8dbdb3b3d..9d00e874f 100644 --- a/tests/app/dao/test_fact_notification_status_dao.py +++ b/tests/app/dao/test_fact_notification_status_dao.py @@ -611,6 +611,7 @@ def test_get_total_notifications_for_date_range(sample_service): assert results[0] == ("2021-03-01", 15, 20, 3) +@freeze_time('2022-03-31T18:00:00') @pytest.mark.parametrize('created_at_utc,process_day,expected_count', [ # Clocks change on the 27th of March 2022, so the query needs to look at the # time range 00:00 - 23:00 (UTC) thereafter.