Missed the anchor tag in the mark up - oops.

This commit is contained in:
Rebecca Law
2016-04-26 12:15:25 +01:00
parent 8141ea87d0
commit a183d8d366
2 changed files with 2 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ def accept_invite(token):
message = Markup("""
Youre signed in as {}.
This invite is for another email address.
{} and click the link again to accept this invite.
<a href={}>Sign out</a> and click the link again to accept this invite.
""".format(
current_user.email_address,
url_for("main.sign_out", _external=True)))

View File

@@ -287,8 +287,7 @@ def test_signed_in_existing_user_cannot_use_anothers_invite(app_,
banner_contents = flash_banners[0].text.strip()
assert "Youre signed in as test@user.gov.uk." in banner_contents
assert "This invite is for another email address." in banner_contents
assert "{} and click the link again to accept this invite.".format(
url_for("main.sign_out", _external=True)) in banner_contents
assert "Sign out and click the link again to accept this invite." in banner_contents
assert mock_accept_invite.call_count == 0