Round max number limit down

A round number feels better than a very arbitrary-looking one.
This commit is contained in:
Chris Hill-Scott
2019-02-27 15:13:33 +00:00
parent 1a94137ff6
commit 9691ef27da
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -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
@@ -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'
)
),
(