mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 08:19:48 -04:00
Round max number limit down
A round number feels better than a very arbitrary-looking one.
This commit is contained in:
@@ -175,7 +175,8 @@ class SMSCode(StringField):
|
|||||||
|
|
||||||
class ForgivingIntegerField(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):
|
def __init__(self, label=None, things='items', **kwargs):
|
||||||
self.things = things
|
self.things = things
|
||||||
|
|||||||
@@ -915,14 +915,14 @@ def test_should_show_persist_estimated_volumes(
|
|||||||
(
|
(
|
||||||
{
|
{
|
||||||
'volume_email': '1234',
|
'volume_email': '1234',
|
||||||
'volume_sms': '2147483648',
|
'volume_sms': '2000000001',
|
||||||
'volume_letter': '9876',
|
'volume_letter': '9876',
|
||||||
'consent_to_research': 'yes',
|
'consent_to_research': 'yes',
|
||||||
},
|
},
|
||||||
'label[for=volume_sms]',
|
'label[for=volume_sms]',
|
||||||
(
|
(
|
||||||
'How many text messages do you expect to send in the next year? For example, 50,000 '
|
'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'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
|
|||||||
Reference in New Issue
Block a user