From f978a4fe457ce58535b020a333a990c1faf1263d Mon Sep 17 00:00:00 2001 From: Ben Thorner Date: Fri, 29 Apr 2022 10:37:19 +0100 Subject: [PATCH] Remove redundant test data for annual usage API This test should be focussed on the structural properties of the API. We can leave more detailed testing of rate multipliers, etc. to lower-level DAO tests. --- tests/app/billing/test_rest.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/tests/app/billing/test_rest.py b/tests/app/billing/test_rest.py index e0d979066..58ced0238 100644 --- a/tests/app/billing/test_rest.py +++ b/tests/app/billing/test_rest.py @@ -206,10 +206,6 @@ def set_up_yearly_data(): create_ft_billing(bst_date='2016-{}-{}'.format(mon, d), template=sms_template, rate=0.0162) - create_ft_billing(bst_date='2016-{}-{}'.format(mon, d), - template=sms_template, - rate_multiplier=2, - rate=0.0162) create_ft_billing(bst_date='2016-{}-{}'.format(mon, d), template=email_template, billable_unit=0, @@ -278,11 +274,11 @@ def test_get_yearly_billing_usage_summary_from_ft_billing(admin_request, notify_ assert json_response[1]['charged_units'] == 275 assert json_response[2]['notification_type'] == 'sms' - assert json_response[2]['billing_units'] == 825 - assert json_response[2]['chargeable_units'] == 825 - assert json_response[2]['notifications_sent'] == 550 + assert json_response[2]['billing_units'] == 275 + assert json_response[2]['chargeable_units'] == 275 + assert json_response[2]['notifications_sent'] == 275 assert json_response[2]['rate'] == 0.0162 assert json_response[2]['letter_total'] == 0 - assert json_response[2]['cost'] == 13.3002 + assert json_response[2]['cost'] == 4.3902 assert json_response[2]['free_allowance_used'] == 4 - assert json_response[2]['charged_units'] == 821 + assert json_response[2]['charged_units'] == 271