mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 21:49:37 -04:00
Add a message saying a template has been redacted
This is useful if it’s been redacted by someone who isn’t you.
This commit is contained in:
@@ -351,7 +351,7 @@ def mock_get_service_template_with_placeholders(mocker):
|
||||
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
def mock_get_service_email_template(mocker, content=None, subject=None):
|
||||
def mock_get_service_email_template(mocker, content=None, subject=None, redact_personalisation=False):
|
||||
def _get(service_id, template_id, version=None):
|
||||
template = template_json(
|
||||
service_id,
|
||||
@@ -360,6 +360,7 @@ def mock_get_service_email_template(mocker, content=None, subject=None):
|
||||
"email",
|
||||
content or "Your vehicle tax expires on ((date))",
|
||||
subject or "Your ((thing)) is due soon",
|
||||
redact_personalisation=redact_personalisation,
|
||||
)
|
||||
return {'data': template}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user