diff --git a/tests/app/billing/test_billing.py b/tests/app/billing/test_billing.py index d62638846..ceab1b354 100644 --- a/tests/app/billing/test_billing.py +++ b/tests/app/billing/test_billing.py @@ -3,6 +3,7 @@ from datetime import datetime, timedelta import json import pytest +from freezegun import freeze_time from app.models import FactBilling from app.dao.date_util import get_current_financial_year_start_year, get_month_start_and_end_date_in_utc @@ -156,6 +157,7 @@ def test_update_free_sms_fragment_limit_data(client, sample_service): assert annual_billing.free_sms_fragment_limit == 9999 +@freeze_time('2018-04-21 14:00') def test_get_yearly_usage_by_monthly_from_ft_billing_populates_deltas(client, notify_db_session): service = create_service() sms_template = create_template(service=service, template_type="sms") diff --git a/tests/app/dao/test_fact_notification_status_dao.py b/tests/app/dao/test_fact_notification_status_dao.py index 360760e61..5239a213c 100644 --- a/tests/app/dao/test_fact_notification_status_dao.py +++ b/tests/app/dao/test_fact_notification_status_dao.py @@ -340,7 +340,6 @@ def test_fetch_notification_status_totals_for_all_services_works_in_bst( ) assert len(results) == 3 - print(results) assert results[0].notification_type == 'email' assert results[0].status == 'delivered'