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:
Chris Hill-Scott
2017-06-28 15:26:09 +01:00
parent afbe175d15
commit 6e48dc7689
5 changed files with 31 additions and 5 deletions

View File

@@ -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}