mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 09:51:11 -05:00
Remove print stmts
This commit is contained in:
@@ -44,15 +44,14 @@ def test_post_sms_notification_returns_201(client, sample_template_with_placehol
|
|||||||
if reference:
|
if reference:
|
||||||
data.update({"reference": reference})
|
data.update({"reference": reference})
|
||||||
auth_header = create_authorization_header(service_id=sample_template_with_placeholders.service_id)
|
auth_header = create_authorization_header(service_id=sample_template_with_placeholders.service_id)
|
||||||
print("********* Start")
|
|
||||||
response = client.post(
|
response = client.post(
|
||||||
path='/v2/notifications/sms',
|
path='/v2/notifications/sms',
|
||||||
data=json.dumps(data),
|
data=json.dumps(data),
|
||||||
headers=[('Content-Type', 'application/json'), auth_header])
|
headers=[('Content-Type', 'application/json'), auth_header])
|
||||||
print("********* End")
|
|
||||||
assert response.status_code == 201
|
assert response.status_code == 201
|
||||||
resp_json = json.loads(response.get_data(as_text=True))
|
resp_json = json.loads(response.get_data(as_text=True))
|
||||||
print(resp_json)
|
|
||||||
assert validate(resp_json, post_sms_response) == resp_json
|
assert validate(resp_json, post_sms_response) == resp_json
|
||||||
notifications = Notification.query.all()
|
notifications = Notification.query.all()
|
||||||
assert len(notifications) == 1
|
assert len(notifications) == 1
|
||||||
|
|||||||
Reference in New Issue
Block a user