From 82c3e8093d2a19d4f53b322b936b9875eb9b9c3b Mon Sep 17 00:00:00 2001 From: Ben Thorner Date: Wed, 27 Apr 2022 16:47:37 +0100 Subject: [PATCH] Remove redundant SMS test data for annual usage --- tests/app/main/views/test_dashboard.py | 4 ++-- tests/conftest.py | 14 -------------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/tests/app/main/views/test_dashboard.py b/tests/app/main/views/test_dashboard.py index 9760da0ba..9dc529a96 100644 --- a/tests/app/main/views/test_dashboard.py +++ b/tests/app/main/views/test_dashboard.py @@ -1017,11 +1017,11 @@ def test_usage_page( sms_column = normalize_spaces(annual_usage[1].text + annual_usage[4].text) assert 'Text messages' in sms_column - assert '252,190 sent' in sms_column + assert '251,800 sent' in sms_column assert '250,000 free allowance' in sms_column assert '0 free allowance remaining' in sms_column assert '£36.14 spent' in sms_column - assert '2,190 at 1.65 pence' in sms_column + assert '1,800 at 1.65 pence' in sms_column letter_column = normalize_spaces(annual_usage[2].text + annual_usage[5].text) assert 'Letters' in letter_column diff --git a/tests/conftest.py b/tests/conftest.py index 9d4dc3a61..01a5a4db6 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -2337,20 +2337,6 @@ def mock_get_usage(mocker, service_one, fake_uuid): "rate": 0.0165, "letter_total": 0 }, - { - "notification_type": "sms", - "chargeable_units": 300, - "notifications_sent": 150, - "rate": 0.0165, - "letter_total": 0 - }, - { - "notification_type": "sms", - "chargeable_units": 90, - "notifications_sent": 90, - "rate": 0.0165, - "letter_total": 0 - }, { "notification_type": "letter", "chargeable_units": 300,