mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-19 14:03:52 -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 = {
|
||||
'filename': filename,
|
||||
'file_id': file_id,
|
||||
'postage': 'second',
|
||||
}
|
||||
data = _attach_current_user(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={
|
||||
'filename': 'my_file.pdf',
|
||||
'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