From fa03b786dc848800eaca12cbae80cbb090b95c5b Mon Sep 17 00:00:00 2001 From: Tom Byers Date: Fri, 21 Feb 2020 14:05:34 +0000 Subject: [PATCH] Change how link is referenced in user profile test Co-Authored-By: Katie Smith --- tests/app/main/views/test_user_profile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/app/main/views/test_user_profile.py b/tests/app/main/views/test_user_profile.py index 6136a98a5..ff0a15ebf 100644 --- a/tests/app/main/views/test_user_profile.py +++ b/tests/app/main/views/test_user_profile.py @@ -263,7 +263,7 @@ def test_non_gov_user_cannot_see_change_email_link( ): client_request.login(api_nongov_user_active) page = client_request.get('main.user_profile') - assert '' not in str(page) + assert not page.find('a', {'href': url_for('main.user_profile_email')}) assert page.select_one('h1').text.strip() == 'Your profile'