Make send test letter preview use template ID

The check page expects template ID to be passed through in the URL not
the session now. The send test letter page wasn’t changed.

This commit changes it, and adds a test to make sure this path is
covered.
This commit is contained in:
Chris Hill-Scott
2018-04-04 17:10:22 +01:00
parent b2722a0cd7
commit 0b905249a7
2 changed files with 41 additions and 4 deletions

View File

@@ -717,7 +717,7 @@ def make_and_upload_csv_file(service_id, template):
'.check_messages',
upload_id=upload_id,
service_id=service_id,
template_type=template.template_type,
template_id=template.id,
from_test=True,
help=2 if get_help_argument() else 0
))