mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-06 09:29:32 -04:00
Pass dvla_org_id through to template preview app
This commit is contained in:
@@ -10,7 +10,8 @@ class TemplatePreview:
|
||||
data = {
|
||||
'letter_contact_block': current_service['letter_contact_block'],
|
||||
'template': template,
|
||||
'values': values
|
||||
'values': values,
|
||||
'dvla_org_id': current_service['dvla_organisation'],
|
||||
}
|
||||
resp = requests.post(
|
||||
'{}/preview.{}'.format(current_app.config['TEMPLATE_PREVIEW_API_HOST'], filetype),
|
||||
|
||||
@@ -72,7 +72,8 @@ def service_json(
|
||||
'organisation': organisation,
|
||||
'branding': branding,
|
||||
'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 = {
|
||||
'letter_contact_block': '123',
|
||||
'template': 'foo',
|
||||
'values': None
|
||||
'values': None,
|
||||
'dvla_org_id': '123',
|
||||
}
|
||||
headers = {'Authorization': 'Token my-secret-key'}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user