Add new rates for 2021

These are the new rates from
https://docs.google.com/document/d/1aObNQNBw3ayPMl3b_Qc5kZBdaXIAMDnBGtV-xPtFBsc/edit?ts=603f68ea#

We’re changing the free allowance so we can continue to support all the
teams that use Notify. The new allowance means over 90% of teams can
still send all the text messages they need to without paying.
This commit is contained in:
Chris Hill-Scott
2021-03-05 15:55:59 +00:00
parent 9a3f2c30ef
commit 61f605ff67
2 changed files with 17 additions and 0 deletions

View File

@@ -35,27 +35,35 @@ class Config(object):
DEFAULT_FREE_SMS_FRAGMENT_LIMITS = {
'central': {
2020: 250_000,
2021: 150_000,
},
'local': {
2020: 25_000,
2021: 25_000,
},
'nhs_central': {
2020: 250_000,
2021: 150_000,
},
'nhs_local': {
2020: 25_000,
2021: 25_000,
},
'nhs_gp': {
2020: 25_000,
2021: 10_000,
},
'emergency_service': {
2020: 25_000,
2021: 25_000,
},
'school_or_college': {
2020: 25_000,
2021: 10_000,
},
'other': {
2020: 25_000,
2021: 10_000,
},
}
EMAIL_EXPIRY_SECONDS = 3600 # 1 hour

View File

@@ -250,6 +250,15 @@ def test_get_should_only_show_nhs_org_types_radios_if_user_has_nhs_email(
(2020, 'school_or_college', 25_000),
(2020, 'emergency_service', 25_000),
(2020, 'other', 25_000),
(2021, 'central', 150_000),
(2021, 'local', 25_000),
(2021, 'nhs_central', 150_000),
(2021, 'nhs_local', 25_000),
(2021, 'nhs_gp', 10_000),
(2021, 'school_or_college', 10_000),
(2021, 'emergency_service', 25_000),
(2021, 'other', 10_000),
])
def test_should_add_service_and_redirect_to_dashboard_when_existing_service(
app_,