mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -05:00
Simple end point for fire text inbound SMS callbacks.
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user