Merge pull request #787 from alphagov/message-limit-increase-fix

Increase daily message limit for unrestricted services
This commit is contained in:
Adam Shimali
2016-07-14 13:36:51 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -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'])

View File

@@ -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_,