Simple end point for fire text inbound SMS callbacks.

This commit is contained in:
Martyn Inglis
2017-05-31 16:15:25 +01:00
parent 2eb4fa6382
commit 3c416d3631
2 changed files with 24 additions and 1 deletions

View File

@@ -16,3 +16,16 @@ def test_receive_notification_returns_received_to_mmg(client):
assert response.status_code == 200
assert response.get_data(as_text=True) == 'RECEIVED'
def test_receive_notification_returns_received_to_firetext(client):
data = {"some": "thing"}
response = client.post(
path='/notifications/sms/receive/firetext',
data=json.dumps(data),
headers=[('Content-Type', 'application/json')])
assert response.status_code == 200
result = json.loads(response.get_data(as_text=True))
assert result['status'] == 'ok'