Skip to content

Commit

Permalink
Auto reformat looks like
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanbobel committed Mar 13, 2024
1 parent 6cdc144 commit e1981d3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions app/main/views/send.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,9 @@ def _check_messages(service_id, template_id, upload_id, preview_row):

if preview_row < len(recipients) + 2:
template.values = recipients[preview_row - 2].recipient_and_personalisation
simplifed_template.values = recipients[preview_row - 2].recipient_and_personalisation
simplifed_template.values = recipients[
preview_row - 2
].recipient_and_personalisation
elif preview_row > 2:
abort(404)

Expand Down Expand Up @@ -863,7 +865,7 @@ def _check_notification(service_id, template_id, exception=None):
back_link_from_preview=back_link_from_preview,
choose_time_form=choose_time_form,
**(get_template_error_dict(exception) if exception else {}),
simplifed_template=simplifed_template
simplifed_template=simplifed_template,
)


Expand Down
6 changes: 4 additions & 2 deletions tests/app/main/views/test_send.py
Original file line number Diff line number Diff line change
Expand Up @@ -2612,8 +2612,10 @@ def test_preview_notification_shows_preview(
session["placeholders"] = {}

page = client_request.post(
"main.preview_notification", service_id=service_one["id"], template_id=fake_uuid,
_expected_status=200
"main.preview_notification",
service_id=service_one["id"],
template_id=fake_uuid,
_expected_status=200,
)
assert page.h1.text.strip() == "Preview"
assert (page.find_all("a", {"class": "usa-back-link"})[0]["href"]) == url_for(
Expand Down

0 comments on commit e1981d3

Please sign in to comment.