Update tests

This commit is contained in:
Pea Tyczynska
2018-11-30 14:16:11 +00:00
parent b9abeb91d3
commit 0b45eda53f
2 changed files with 6 additions and 3 deletions

View File

@@ -803,6 +803,8 @@ def get_send_test_page_title(template_type, help_argument, entering_recipient, n
def is_current_user_the_recipient():
if 'recipient' not in session:
return False
if hasattr(current_user, 'phone_number'):
return session['recipient'] in {current_user.email_address, current_user.phone_number}
return session['recipient'] == current_user.email_address