mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Use underscores to notate 1000s
This is easier to read than using multiplication, or nothing.
This commit is contained in:
@@ -34,28 +34,28 @@ class Config(object):
|
|||||||
DEFAULT_SERVICE_LIMIT = 50
|
DEFAULT_SERVICE_LIMIT = 50
|
||||||
DEFAULT_FREE_SMS_FRAGMENT_LIMITS = {
|
DEFAULT_FREE_SMS_FRAGMENT_LIMITS = {
|
||||||
'central': {
|
'central': {
|
||||||
2020: 250000,
|
2020: 250_000,
|
||||||
},
|
},
|
||||||
'local': {
|
'local': {
|
||||||
2020: 25000,
|
2020: 25_000,
|
||||||
},
|
},
|
||||||
'nhs_central': {
|
'nhs_central': {
|
||||||
2020: 250000,
|
2020: 250_000,
|
||||||
},
|
},
|
||||||
'nhs_local': {
|
'nhs_local': {
|
||||||
2020: 25000,
|
2020: 25_000,
|
||||||
},
|
},
|
||||||
'nhs_gp': {
|
'nhs_gp': {
|
||||||
2020: 25000,
|
2020: 25_000,
|
||||||
},
|
},
|
||||||
'emergency_service': {
|
'emergency_service': {
|
||||||
2020: 25000,
|
2020: 25_000,
|
||||||
},
|
},
|
||||||
'school_or_college': {
|
'school_or_college': {
|
||||||
2020: 25000,
|
2020: 25_000,
|
||||||
},
|
},
|
||||||
'other': {
|
'other': {
|
||||||
2020: 25000,
|
2020: 25_000,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
EMAIL_EXPIRY_SECONDS = 3600 # 1 hour
|
EMAIL_EXPIRY_SECONDS = 3600 # 1 hour
|
||||||
|
|||||||
@@ -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', [
|
@pytest.mark.parametrize('financial_year, organisation_type, free_allowance', [
|
||||||
(2020, 'central', 250 * 1000),
|
(2020, 'central', 250_000),
|
||||||
(2020, 'local', 25 * 1000),
|
(2020, 'local', 25_000),
|
||||||
(2020, 'nhs_central', 250 * 1000),
|
(2020, 'nhs_central', 250_000),
|
||||||
(2020, 'nhs_local', 25 * 1000),
|
(2020, 'nhs_local', 25_000),
|
||||||
(2020, 'nhs_gp', 25 * 1000),
|
(2020, 'nhs_gp', 25_000),
|
||||||
(2020, 'school_or_college', 25 * 1000),
|
(2020, 'school_or_college', 25_000),
|
||||||
(2020, 'emergency_service', 25 * 1000),
|
(2020, 'emergency_service', 25_000),
|
||||||
(2020, 'other', 25 * 1000),
|
(2020, 'other', 25_000),
|
||||||
])
|
])
|
||||||
def test_should_add_service_and_redirect_to_dashboard_when_existing_service(
|
def test_should_add_service_and_redirect_to_dashboard_when_existing_service(
|
||||||
app_,
|
app_,
|
||||||
|
|||||||
Reference in New Issue
Block a user