Fix keys used to render monthly usage

These were out-of-sync with the API.
This commit is contained in:
Ben Thorner
2022-05-11 13:28:33 +01:00
parent 84dde0f824
commit 4abb6110c8
3 changed files with 30 additions and 38 deletions

View File

@@ -2365,10 +2365,9 @@ def mock_get_monthly_usage_for_service(mocker):
'chargeable_units': 1230,
'notifications_sent': 1234,
'postage': 'none',
'sms_charged': 1230,
'sms_free_allowance_used': 0,
'sms_cost': 20.91,
'letter_cost': 0,
'charged_units': 1230,
'free_allowance_used': 0,
'cost': 20.91,
},
{
'month': 'February',
@@ -2377,10 +2376,9 @@ def mock_get_monthly_usage_for_service(mocker):
'chargeable_units': 33,
'notifications_sent': 1234,
'postage': 'none',
'sms_charged': 33,
'sms_free_allowance_used': 0,
'sms_cost': 0.561,
'letter_cost': 0,
'charged_units': 33,
'free_allowance_used': 0,
'cost': 0.561,
},
{
'month': 'February',
@@ -2389,10 +2387,9 @@ def mock_get_monthly_usage_for_service(mocker):
'chargeable_units': 1100,
'notifications_sent': 1234,
'postage': 'none',
'sms_charged': 960,
'sms_free_allowance_used': 140,
'sms_cost': 15.84,
'letter_cost': 0,
'charged_units': 960,
'free_allowance_used': 140,
'cost': 15.84,
},
{
'month': 'February',
@@ -2401,10 +2398,9 @@ def mock_get_monthly_usage_for_service(mocker):
'chargeable_units': 10,
'notifications_sent': 10,
'postage': 'second',
'sms_charged': 0,
'sms_free_allowance_used': 0,
'sms_cost': 0,
'letter_cost': 3.1,
'charged_units': 10,
'free_allowance_used': 0,
'cost': 3.1,
},
{
'month': 'February',
@@ -2413,10 +2409,9 @@ def mock_get_monthly_usage_for_service(mocker):
'chargeable_units': 5,
'notifications_sent': 5,
'postage': 'first',
'sms_charged': 0,
'sms_free_allowance_used': 0,
'sms_cost': 0,
'letter_cost': 1.65,
'charged_units': 5,
'free_allowance_used': 0,
'cost': 1.65,
},
{
'month': 'February',
@@ -2425,10 +2420,9 @@ def mock_get_monthly_usage_for_service(mocker):
'chargeable_units': 3,
'notifications_sent': 3,
'postage': 'europe',
'sms_charged': 0,
'sms_free_allowance_used': 0,
'sms_cost': 0,
'letter_cost': 2.52,
'charged_units': 3,
'free_allowance_used': 0,
'cost': 2.52,
},
{
'month': 'February',
@@ -2437,10 +2431,9 @@ def mock_get_monthly_usage_for_service(mocker):
'chargeable_units': 7,
'notifications_sent': 7,
'postage': 'rest-of-world',
'sms_charged': 0,
'sms_free_allowance_used': 0,
'sms_cost': 0,
'letter_cost': 5.88,
'charged_units': 7,
'free_allowance_used': 0,
'cost': 5.88,
},
{
'month': 'April',
@@ -2449,10 +2442,9 @@ def mock_get_monthly_usage_for_service(mocker):
'chargeable_units': 249860,
'notifications_sent': 1234,
'postage': 'none',
'sms_charged': 0,
'sms_free_allowance_used': 249860,
'sms_cost': 0,
'letter_cost': 0,
'charged_units': 0,
'free_allowance_used': 249860,
'cost': 0,
},
]