mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -05:00
Updated the precompiled response to only include the notification id
and the client reference. It could confuse the client consumer so best to remove it from the response altogether. * Respond with only the notification_id and client_reference * Updated the test to check for the response without the template
This commit is contained in:
@@ -760,11 +760,8 @@ def test_post_precompiled_letter_notification_returns_201(client, notify_user, m
|
||||
resp_json = json.loads(response.get_data(as_text=True))
|
||||
|
||||
assert resp_json == {
|
||||
'content': {'body': None, 'subject': 'Pre-compiled PDF'},
|
||||
'id': str(notification.id),
|
||||
'reference': 'letter-reference',
|
||||
'scheduled_for': None,
|
||||
'uri': ANY
|
||||
'reference': 'letter-reference'
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user