From 13a98a73c1a80428e892b1ad4a8e6f8fbf44f265 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Thu, 29 Aug 2019 17:45:17 +0100 Subject: [PATCH] Set free allowance for GP surgeries This also tests that a user from an unknown organisation can pick any of the available options and get the right allowance. --- app/config.py | 1 + tests/app/main/views/test_add_service.py | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/app/config.py b/app/config.py index a7b473b14..ce022374f 100644 --- a/app/config.py +++ b/app/config.py @@ -43,6 +43,7 @@ class Config(object): 'local': 25000, 'nhs_central': 250000, 'nhs_local': 25000, + 'nhs_gp': 25000, 'emergency_service': 25000, 'school_or_college': 25000, 'other': 25000, diff --git a/tests/app/main/views/test_add_service.py b/tests/app/main/views/test_add_service.py index 539a80132..2939e0dfb 100644 --- a/tests/app/main/views/test_add_service.py +++ b/tests/app/main/views/test_add_service.py @@ -80,6 +80,13 @@ def test_get_should_not_render_radios_if_org_type_known( )) @pytest.mark.parametrize('inherited, posted, persisted, sms_limit', ( (None, 'central', 'central', 250000), + (None, 'nhs_central', 'nhs_central', 250000), + (None, 'nhs_gp', 'nhs_gp', 25000), + (None, 'nhs_local', 'nhs_local', 25000), + (None, 'local', 'local', 25000), + (None, 'emergency_service', 'emergency_service', 25000), + (None, 'school_or_college', 'school_or_college', 25000), + (None, 'other', 'other', 25000), ('central', None, 'central', 250000), ('nhs_central', None, 'nhs_central', 250000), ('nhs_local', None, 'nhs_local', 25000),