mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-24 18:21:13 +02:00
fix test
This commit is contained in:
parent
e68423c5ee
commit
f203c99218
2 changed files with 6 additions and 6 deletions
|
@ -1676,8 +1676,8 @@ class TestPortfolio(WebTest):
|
|||
self.assertEqual(response.status_code, 400) # Bad request due to active requests
|
||||
support_url = "https://get.gov/contact/"
|
||||
expected_error_message = (
|
||||
"Please <contact us> to remove this member."
|
||||
f"Please <a href='{support_url}' target='_blank'>contact us</a> to remove this member."
|
||||
"This member can't be removed from the organization because they have an active domain request."
|
||||
f"Please <a class='usa-link' href='{support_url}' target='_blank'>contact us</a> to remove this member."
|
||||
)
|
||||
|
||||
self.assertContains(response, expected_error_message, status_code=400)
|
||||
|
@ -1799,8 +1799,8 @@ class TestPortfolio(WebTest):
|
|||
|
||||
support_url = "https://get.gov/contact/"
|
||||
expected_error_message = (
|
||||
"Please <contact us> to remove this member."
|
||||
f"Please <a href='{support_url}' target='_blank'>contact us</a> to remove this member."
|
||||
"This member can't be removed from the organization because they have an active domain request."
|
||||
f"Please <a class='usa-link' href='{support_url}' target='_blank'>contact us</a> to remove this member."
|
||||
)
|
||||
|
||||
args, kwargs = mock_error.call_args
|
||||
|
|
|
@ -118,8 +118,8 @@ class PortfolioMemberDeleteView(PortfolioMemberPermission, View):
|
|||
if active_requests_count > 0:
|
||||
# If they have any in progress requests
|
||||
error_message = mark_safe(
|
||||
"Please <contact us> to remove this member."
|
||||
f"Please <a href='{support_url}' target='_blank'>contact us</a> to remove this member."
|
||||
"This member can't be removed from the organization because they have an active domain request."
|
||||
f"Please <a class='usa-link' href='{support_url}' target='_blank'>contact us</a> to remove this member."
|
||||
)
|
||||
elif member.is_only_admin_of_portfolio(portfolio_member_permission.portfolio):
|
||||
# If they are the last manager of a domain
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue