From 9a3f2c30ef5bbb5e84e36504816efb1e0dab90e3 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Fri, 5 Mar 2021 15:09:21 +0000 Subject: [PATCH] Use underscores to notate 1000s This is easier to read than using multiplication, or nothing. --- app/config.py | 16 ++++++++-------- tests/app/main/views/test_add_service.py | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/app/config.py b/app/config.py index fbef50457..0045088b7 100644 --- a/app/config.py +++ b/app/config.py @@ -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 diff --git a/tests/app/main/views/test_add_service.py b/tests/app/main/views/test_add_service.py index 55db79a14..6dd40b1da 100644 --- a/tests/app/main/views/test_add_service.py +++ b/tests/app/main/views/test_add_service.py @@ -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_,