Use underscores to notate 1000s

This is easier to read than using multiplication, or nothing.
This commit is contained in:
Chris Hill-Scott
2021-03-05 15:09:21 +00:00
parent 2138ce02d9
commit 9a3f2c30ef
2 changed files with 16 additions and 16 deletions

View File

@@ -34,28 +34,28 @@ class Config(object):
DEFAULT_SERVICE_LIMIT = 50
DEFAULT_FREE_SMS_FRAGMENT_LIMITS = {
'central': {
2020: 250000,
2020: 250_000,
},
'local': {
2020: 25000,
2020: 25_000,
},
'nhs_central': {
2020: 250000,
2020: 250_000,
},
'nhs_local': {
2020: 25000,
2020: 25_000,
},
'nhs_gp': {
2020: 25000,
2020: 25_000,
},
'emergency_service': {
2020: 25000,
2020: 25_000,
},
'school_or_college': {
2020: 25000,
2020: 25_000,
},
'other': {
2020: 25000,
2020: 25_000,
},
}
EMAIL_EXPIRY_SECONDS = 3600 # 1 hour

View File

@@ -242,14 +242,14 @@ def test_get_should_only_show_nhs_org_types_radios_if_user_has_nhs_email(
@pytest.mark.parametrize('financial_year, organisation_type, free_allowance', [
(2020, 'central', 250 * 1000),
(2020, 'local', 25 * 1000),
(2020, 'nhs_central', 250 * 1000),
(2020, 'nhs_local', 25 * 1000),
(2020, 'nhs_gp', 25 * 1000),
(2020, 'school_or_college', 25 * 1000),
(2020, 'emergency_service', 25 * 1000),
(2020, 'other', 25 * 1000),
(2020, 'central', 250_000),
(2020, 'local', 25_000),
(2020, 'nhs_central', 250_000),
(2020, 'nhs_local', 25_000),
(2020, 'nhs_gp', 25_000),
(2020, 'school_or_college', 25_000),
(2020, 'emergency_service', 25_000),
(2020, 'other', 25_000),
])
def test_should_add_service_and_redirect_to_dashboard_when_existing_service(
app_,