mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 02:23:19 -04:00
Merge pull request #3153 from alphagov/second-class-default
Send precompiled letters with a postage value to the API
This commit is contained in:
@@ -63,6 +63,7 @@ class NotificationApiClient(NotifyAdminAPIClient):
|
|||||||
data = {
|
data = {
|
||||||
'filename': filename,
|
'filename': filename,
|
||||||
'file_id': file_id,
|
'file_id': file_id,
|
||||||
|
'postage': 'second',
|
||||||
}
|
}
|
||||||
data = _attach_current_user(data)
|
data = _attach_current_user(data)
|
||||||
return self.post(url='/service/{}/send-pdf-letter'.format(service_id), data=data)
|
return self.post(url='/service/{}/send-pdf-letter'.format(service_id), data=data)
|
||||||
|
|||||||
@@ -71,7 +71,8 @@ def test_send_precompiled_letter(mocker, logged_in_client, active_user_with_perm
|
|||||||
data={
|
data={
|
||||||
'filename': 'my_file.pdf',
|
'filename': 'my_file.pdf',
|
||||||
'file_id': 'file-ID',
|
'file_id': 'file-ID',
|
||||||
'created_by': active_user_with_permissions['id']
|
'created_by': active_user_with_permissions['id'],
|
||||||
|
'postage': 'second',
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user