mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 12:49:48 -04:00
Pass dvla_org_id through to template preview app
This commit is contained in:
@@ -10,7 +10,8 @@ class TemplatePreview:
|
|||||||
data = {
|
data = {
|
||||||
'letter_contact_block': current_service['letter_contact_block'],
|
'letter_contact_block': current_service['letter_contact_block'],
|
||||||
'template': template,
|
'template': template,
|
||||||
'values': values
|
'values': values,
|
||||||
|
'dvla_org_id': current_service['dvla_organisation'],
|
||||||
}
|
}
|
||||||
resp = requests.post(
|
resp = requests.post(
|
||||||
'{}/preview.{}'.format(current_app.config['TEMPLATE_PREVIEW_API_HOST'], filetype),
|
'{}/preview.{}'.format(current_app.config['TEMPLATE_PREVIEW_API_HOST'], filetype),
|
||||||
|
|||||||
@@ -72,7 +72,8 @@ def service_json(
|
|||||||
'organisation': organisation,
|
'organisation': organisation,
|
||||||
'branding': branding,
|
'branding': branding,
|
||||||
'created_at': created_at or str(datetime.utcnow()),
|
'created_at': created_at or str(datetime.utcnow()),
|
||||||
'letter_contact_block': letter_contact_block
|
'letter_contact_block': letter_contact_block,
|
||||||
|
'dvla_organisation': '001',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,8 @@ def test_from_database_object_makes_request(mocker, client):
|
|||||||
data = {
|
data = {
|
||||||
'letter_contact_block': '123',
|
'letter_contact_block': '123',
|
||||||
'template': 'foo',
|
'template': 'foo',
|
||||||
'values': None
|
'values': None,
|
||||||
|
'dvla_org_id': '123',
|
||||||
}
|
}
|
||||||
headers = {'Authorization': 'Token my-secret-key'}
|
headers = {'Authorization': 'Token my-secret-key'}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user