mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-13 18:38:33 -04:00
Make mocks more realistic
SMS remainder is never None, in practice it would be either 0 or a natural number.
This commit is contained in:
@@ -696,7 +696,7 @@ def test_download_organisation_usage_report(
|
||||
'letter_cost': 30.5,
|
||||
'sms_billable_units': 122,
|
||||
'sms_cost': 1.934,
|
||||
'sms_remainder': None
|
||||
'sms_remainder': 0
|
||||
},
|
||||
{
|
||||
'service_id': SERVICE_TWO_ID,
|
||||
@@ -707,7 +707,7 @@ def test_download_organisation_usage_report(
|
||||
'letter_cost': 60.5,
|
||||
'sms_billable_units': 322,
|
||||
'sms_cost': 3.935,
|
||||
'sms_remainder': None
|
||||
'sms_remainder': 0
|
||||
},
|
||||
]}
|
||||
)
|
||||
@@ -722,8 +722,8 @@ def test_download_organisation_usage_report(
|
||||
assert csv_report.string == (
|
||||
"Service ID,Service Name,Emails sent,Free text message allowance remaining,"
|
||||
"Spent on text messages (£),Spent on letters (£)"
|
||||
"\r\n596364a0-858e-42c8-9062-a8fe822260eb,Service 1,13000,,1.93,30.50"
|
||||
"\r\n147ad62a-2951-4fa1-9ca0-093cd1a52c52,Service 1,23000,,3.94,60.50\r\n"
|
||||
"\r\n596364a0-858e-42c8-9062-a8fe822260eb,Service 1,13000,0,1.93,30.50"
|
||||
"\r\n147ad62a-2951-4fa1-9ca0-093cd1a52c52,Service 1,23000,0,3.94,60.50\r\n"
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user