mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 23:55:58 -05:00
swap out uk org types for us-specific org types
This commit is contained in:
@@ -47,31 +47,17 @@ def test_dao_update_annual_billing_for_future_years(notify_db_session, sample_se
|
||||
|
||||
|
||||
@pytest.mark.parametrize('org_type, year, expected_default',
|
||||
[('central', 2021, 150000),
|
||||
('local', 2021, 25000),
|
||||
('nhs_central', 2021, 150000),
|
||||
('nhs_local', 2021, 25000),
|
||||
('nhs_gp', 2021, 10000),
|
||||
('emergency_service', 2021, 25000),
|
||||
('school_or_college', 2021, 10000),
|
||||
('other', 2021, 10000),
|
||||
(None, 2021, 10000),
|
||||
('central', 2020, 250000),
|
||||
('local', 2020, 25000),
|
||||
('nhs_central', 2020, 250000),
|
||||
('nhs_local', 2020, 25000),
|
||||
('nhs_gp', 2020, 25000),
|
||||
('emergency_service', 2020, 25000),
|
||||
('school_or_college', 2020, 25000),
|
||||
('other', 2020, 25000),
|
||||
(None, 2020, 25000),
|
||||
('central', 2019, 250000),
|
||||
('school_or_college', 2022, 10000),
|
||||
('central', 2022, 40000),
|
||||
('local', 2022, 20000),
|
||||
('nhs_local', 2022, 20000),
|
||||
('emergency_service', 2022, 20000),
|
||||
('central', 2023, 40000),
|
||||
[('federal', 2021, 150000),
|
||||
('state', 2021, 150000),
|
||||
(None, 2021, 150000),
|
||||
('federal', 2020, 250000),
|
||||
('state', 2020, 250000),
|
||||
('other', 2020, 250000),
|
||||
(None, 2020, 250000),
|
||||
('federal', 2019, 250000),
|
||||
('federal', 2022, 40000),
|
||||
('state', 2022, 40000),
|
||||
('federal', 2023, 40000),
|
||||
])
|
||||
def test_set_default_free_allowance_for_service(notify_db_session, org_type, year, expected_default):
|
||||
|
||||
@@ -93,7 +79,7 @@ def test_set_default_free_allowance_for_service_using_correct_year(sample_servic
|
||||
|
||||
mock_dao.assert_called_once_with(
|
||||
sample_service.id,
|
||||
25000,
|
||||
250000,
|
||||
2020
|
||||
)
|
||||
|
||||
@@ -105,9 +91,9 @@ def test_set_default_free_allowance_for_service_updates_existing_year(sample_ser
|
||||
assert not sample_service.organisation_type
|
||||
assert len(annual_billing) == 1
|
||||
assert annual_billing[0].service_id == sample_service.id
|
||||
assert annual_billing[0].free_sms_fragment_limit == 10000
|
||||
assert annual_billing[0].free_sms_fragment_limit == 150000
|
||||
|
||||
sample_service.organisation_type = 'central'
|
||||
sample_service.organisation_type = 'federal'
|
||||
|
||||
set_default_free_allowance_for_service(service=sample_service, year_start=None)
|
||||
annual_billing = AnnualBilling.query.all()
|
||||
|
||||
@@ -162,6 +162,7 @@ def test_create_service_with_organisation(notify_db_session):
|
||||
# the NHS branding set up
|
||||
('SHN', False),
|
||||
))
|
||||
@pytest.mark.skip(reason='Update for TTS')
|
||||
def test_create_nhs_service_get_default_branding_based_on_email_address(
|
||||
notify_db_session,
|
||||
branding_name_to_create,
|
||||
|
||||
Reference in New Issue
Block a user