diff --git a/app/main/forms.py b/app/main/forms.py index 556bf0dca..9068b09e0 100644 --- a/app/main/forms.py +++ b/app/main/forms.py @@ -175,7 +175,8 @@ class SMSCode(StringField): class ForgivingIntegerField(StringField): - POSTGRES_MAX_INT = 2147483647 + # Actual value is 2147483647 but this is a scary looking arbitrary number + POSTGRES_MAX_INT = 2000000000 def __init__(self, label=None, things='items', **kwargs): self.things = things diff --git a/tests/app/main/views/test_service_settings.py b/tests/app/main/views/test_service_settings.py index b9804fda3..3e63b3f46 100644 --- a/tests/app/main/views/test_service_settings.py +++ b/tests/app/main/views/test_service_settings.py @@ -915,14 +915,14 @@ def test_should_show_persist_estimated_volumes( ( { 'volume_email': '1234', - 'volume_sms': '2147483648', + 'volume_sms': '2000000001', 'volume_letter': '9876', 'consent_to_research': 'yes', }, 'label[for=volume_sms]', ( 'How many text messages do you expect to send in the next year? For example, 50,000 ' - 'Number of text messages must be 2,147,483,647 or less' + 'Number of text messages must be 2,000,000,000 or less' ) ), (