Extend main test for service usage page

This adds missing assertions for email and SMS usage, as well as
letters with the help of some additional test data.

Previously we were only checking monthly usage (in other tests).
This commit is contained in:
Ben Thorner
2022-04-26 15:26:08 +01:00
parent 2aa3e78db2
commit c6f5467009
2 changed files with 30 additions and 7 deletions

View File

@@ -2350,7 +2350,14 @@ def mock_get_usage(mocker, service_one, fake_uuid):
"notifications_sent": 90,
"rate": 0.0165,
"letter_total": 0
}
},
{
"notification_type": "letter",
"chargeable_units": 300,
"notifications_sent": 100,
"rate": 0.1,
"letter_total": 30
},
]
return mocker.patch(