mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 09:26:08 -05:00
Improvements to the tests.
Update AuthError with a to_dict_v2 method.
This commit is contained in:
@@ -56,12 +56,13 @@ post_sms_response = {
|
||||
}
|
||||
|
||||
|
||||
def create_post_sms_response_from_notification(notification, content):
|
||||
def create_post_sms_response_from_notification(notification, body, from_number, url_root):
|
||||
return {"id": notification.id,
|
||||
"reference": None, # not yet implemented
|
||||
"content": content,
|
||||
"uri": "v2/notifications/{}".format(notification.id),
|
||||
"content": {'body': body,
|
||||
'from_number': from_number},
|
||||
"uri": "{}/v2/notifications/{}".format(url_root, str(notification.id)),
|
||||
"template": {"id": notification.template_id,
|
||||
"version": notification.template_version,
|
||||
"uri": "v2/templates/{}".format(notification.template_id)}
|
||||
"uri": "{}/v2/templates/{}".format(url_root, str(notification.template_id))}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user