From 22601ab4f620388c7323d5760855ded3d8cf047f Mon Sep 17 00:00:00 2001 From: Adam Shimali Date: Thu, 14 Jul 2016 11:38:54 +0100 Subject: [PATCH] Increase daily message limit for unrestricted services. This pr is for: https://www.pivotaltracker.com/story/show/126230157 --- app/main/views/service_settings.py | 2 +- tests/app/main/views/test_service_settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main/views/service_settings.py b/app/main/views/service_settings.py index 840e4db0a..40e92787b 100644 --- a/app/main/views/service_settings.py +++ b/app/main/views/service_settings.py @@ -148,7 +148,7 @@ def service_switch_live(service_id): current_service['active'], # TODO This limit should be set depending on the agreement signed by # with Notify. - 25000 if current_service['restricted'] else 50, + 250000 if current_service['restricted'] else 50, False if current_service['restricted'] else True, current_service['users'], current_service['email_from']) diff --git a/tests/app/main/views/test_service_settings.py b/tests/app/main/views/test_service_settings.py index 8381cfa41..358aab9e3 100644 --- a/tests/app/main/views/test_service_settings.py +++ b/tests/app/main/views/test_service_settings.py @@ -80,7 +80,7 @@ def test_switch_service_to_live(app_, assert response.location == url_for( 'main.service_settings', service_id=service_one['id'], _external=True) - mock_update_service.assert_called_with(ANY, ANY, ANY, 25000, False, ANY, ANY) + mock_update_service.assert_called_with(ANY, ANY, ANY, 250000, False, ANY, ANY) def test_switch_service_to_restricted(app_,