From 4d77e29a72fa728dd875e0673ebbfa124b828f40 Mon Sep 17 00:00:00 2001 From: zandercymatics <141044360+zandercymatics@users.noreply.github.com> Date: Wed, 5 Mar 2025 11:56:49 -0700 Subject: [PATCH] Update test_views_portfolio.py --- src/registrar/tests/test_views_portfolio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/registrar/tests/test_views_portfolio.py b/src/registrar/tests/test_views_portfolio.py index 635c77ef9..92e053576 100644 --- a/src/registrar/tests/test_views_portfolio.py +++ b/src/registrar/tests/test_views_portfolio.py @@ -3873,7 +3873,7 @@ class TestPortfolioInviteNewMemberView(MockEppLib, WebTest): # verify messages self.assertContains( response, - ("This user has already been invited to another .gov organization."), + f"{self.invited_member_email} has already been invited to another .gov organization.", ) # Validate Database has not changed @@ -3911,7 +3911,7 @@ class TestPortfolioInviteNewMemberView(MockEppLib, WebTest): # Verify messages self.assertContains( response, - ("This user is already a member of another .gov organization."), + f"{self.user.email} is already a member of another .gov organization.", ) # Validate Database has not changed