Some more tests around edge cases

This commit is contained in:
Martyn Inglis
2016-03-09 11:35:12 +00:00
parent 14d621d243
commit 61af70a392
3 changed files with 30 additions and 3 deletions

View File

@@ -797,7 +797,7 @@ def test_should_block_api_call_if_over_day_limit_regardless_of_type(notify_db, n
sample_notification(notify_db, notify_db_session, template=email_template, service=service)
data = {
'to': '+441234123123',
'to': '+447234123123',
'template': sms_template.id
}
@@ -813,7 +813,7 @@ def test_should_block_api_call_if_over_day_limit_regardless_of_type(notify_db, n
data=json.dumps(data),
headers=[('Content-Type', 'application/json'), auth_header])
json_resp = json.loads(response.get_data(as_text=True))
print(json_resp)
assert response.status_code == 429
assert 'Exceeded send limits (1) for today' in json_resp['message']