mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 09:51:11 -05:00
notify-api-332 rename organisation
This commit is contained in:
@@ -130,7 +130,7 @@ def test_get_data_for_billing_report(notify_db_session, admin_request):
|
||||
# we set up 4 services, but only 1 returned. service_with_emails was skipped as it had no bills to pay,
|
||||
# and likewise the service with SMS within allowance was skipped. too.
|
||||
assert len(response) == 1
|
||||
assert response[0]["organisation_id"] == ""
|
||||
assert response[0]["organization_id"] == ""
|
||||
assert response[0]["service_id"] == str(fixtures["service_with_sms_without_org"].id)
|
||||
assert response[0]["sms_cost"] == 0.33
|
||||
assert response[0]["sms_chargeable_units"] == 3
|
||||
@@ -173,21 +173,21 @@ def test_volumes_by_service_report(
|
||||
|
||||
# since we are using a pre-set up fixture, we only care about some of the results
|
||||
assert response[0] == {'email_totals': 0, 'free_allowance': 10,
|
||||
'organisation_id': str(fixture['org_1'].id),
|
||||
'organisation_name': fixture['org_1'].name,
|
||||
'organization_id': str(fixture['org_1'].id),
|
||||
'organization_name': fixture['org_1'].name,
|
||||
'service_id': str(fixture['service_1_sms_and_letter'].id),
|
||||
'service_name': fixture['service_1_sms_and_letter'].name,
|
||||
'sms_chargeable_units': 2, 'sms_notifications': 1}
|
||||
assert response[1] == {'email_totals': 0, 'free_allowance': 10, 'organisation_id': str(fixture['org_1'].id),
|
||||
'organisation_name': fixture['org_1'].name,
|
||||
assert response[1] == {'email_totals': 0, 'free_allowance': 10, 'organization_id': str(fixture['org_1'].id),
|
||||
'organization_name': fixture['org_1'].name,
|
||||
'service_id': str(fixture['service_with_out_ft_billing_this_year'].id),
|
||||
'service_name': fixture['service_with_out_ft_billing_this_year'].name,
|
||||
'sms_chargeable_units': 0, 'sms_notifications': 0}
|
||||
assert response[3] == {'email_totals': 0, 'free_allowance': 10, 'organisation_id': '', 'organisation_name': '',
|
||||
assert response[3] == {'email_totals': 0, 'free_allowance': 10, 'organization_id': '', 'organization_name': '',
|
||||
'service_id': str(fixture['service_with_sms_without_org'].id),
|
||||
'service_name': fixture['service_with_sms_without_org'].name,
|
||||
'sms_chargeable_units': 0, 'sms_notifications': 0}
|
||||
assert response[4] == {'email_totals': 0, 'free_allowance': 10, 'organisation_id': '', 'organisation_name': '',
|
||||
assert response[4] == {'email_totals': 0, 'free_allowance': 10, 'organization_id': '', 'organization_name': '',
|
||||
'service_id': str(fixture['service_with_sms_within_allowance'].id),
|
||||
'service_name': fixture['service_with_sms_within_allowance'].name,
|
||||
'sms_chargeable_units': 0, 'sms_notifications': 0}
|
||||
|
||||
Reference in New Issue
Block a user