Merge pull request #3469 from alphagov/free-allowance-0

Allow SMS fragment limit to be 0
This commit is contained in:
Katie Smith
2022-02-28 14:10:44 +00:00
committed by GitHub
4 changed files with 1 additions and 8 deletions

View File

@@ -6,7 +6,7 @@ create_or_update_free_sms_fragment_limit_schema = {
"type": "object",
"title": "Create",
"properties": {
"free_sms_fragment_limit": {"type": "integer", "minimum": 1},
"free_sms_fragment_limit": {"type": "integer", "minimum": 0},
},
"required": ["free_sms_fragment_limit"]
}

View File

@@ -29,10 +29,6 @@ IN_MAY_2016 = datetime(2016, 5, 10, 23, 00, 00)
IN_JUN_2016 = datetime(2016, 6, 3, 23, 00, 00)
def _assert_dict_equals(actual, expected_dict):
assert actual == expected_dict
def test_create_update_free_sms_fragment_limit_invalid_schema(client, sample_service):
response = client.post('service/{}/billing/free-sms-fragment-limit'.format(sample_service.id),

View File

@@ -260,7 +260,6 @@ def create_notification(
rate_multiplier=None,
international=False,
phone_prefix=None,
scheduled_for=None,
normalised_to=None,
one_off=False,
reply_to_text=None,

View File

@@ -20,7 +20,6 @@ def test_get_notification_by_id_returns_200(
template=sample_template,
billable_units=billable_units,
sent_by=provider,
scheduled_for="2017-05-12 15:15"
)
# another
@@ -28,7 +27,6 @@ def test_get_notification_by_id_returns_200(
template=sample_template,
billable_units=billable_units,
sent_by=provider,
scheduled_for="2017-06-12 15:15"
)
auth_header = create_service_authorization_header(service_id=sample_notification.service_id)