diff --git a/tests/app/main/views/test_dashboard.py b/tests/app/main/views/test_dashboard.py index 2e48c1291..a6b5a0e5e 100644 --- a/tests/app/main/views/test_dashboard.py +++ b/tests/app/main/views/test_dashboard.py @@ -1176,79 +1176,6 @@ def test_usage_page_displays_letters_ordered_by_postage( assert normalize_spaces(postage_details[4].text) == '7 international letters at £1.50' -@freeze_time("2012-07-30 12:12:12") -def test_usage_page_displays_letters_split_by_month_and_postage( - mocker, - client_request, - service_one, - mock_get_annual_usage_for_service, - mock_get_free_sms_fragment_limit -): - billable_units_resp = [ - { - 'month': 'April', - 'notification_type': 'letter', - 'rate': 0.5, - 'chargeable_units': 1, - 'notifications_sent': 1, - 'postage': 'second', - 'letter_cost': 0.5, - }, - { - 'month': 'April', - 'notification_type': 'letter', - 'rate': 1, - 'chargeable_units': 1, - 'notifications_sent': 1, - 'postage': 'europe', - 'letter_cost': 1, - }, - { - 'month': 'May', - 'notification_type': 'letter', - 'rate': 1, - 'chargeable_units': 7, - 'notifications_sent': 7, - 'postage': 'europe', - 'letter_cost': 7, - }, - { - 'month': 'May', - 'notification_type': 'letter', - 'rate': 0.5, - 'chargeable_units': 3, - 'notifications_sent': 3, - 'postage': 'second', - 'letter_cost': 1.5, - }, - { - 'month': 'May', - 'notification_type': 'letter', - 'rate': 0.7, - 'chargeable_units': 1, - 'notifications_sent': 1, - 'postage': 'first', - 'letter_cost': 0.7, - }, - ] - - mocker.patch('app.billing_api_client.get_monthly_usage_for_service', return_value=billable_units_resp) - service_one['permissions'].append('letter') - page = client_request.get( - 'main.usage', - service_id=SERVICE_ONE_ID, - ) - - april_row = normalize_spaces(page.find('table').find_all('tr')[1].text) - may_row = normalize_spaces(page.find('table').find_all('tr')[2].text) - - assert '1 second class letter at 50p' in april_row - assert '1 international letter at £1.00' in april_row - assert '1 first class letter at 70p' in may_row - assert '3 second class letters at 50p' in may_row - assert '7 international letters at £1.00' in may_row - - def test_usage_page_with_0_free_allowance( mocker, client_request,