mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-16 14:34:10 +02:00
Test org editor also emailed when org updated
This commit is contained in:
parent
e7234c4ba4
commit
6e50339ffa
1 changed files with 6 additions and 0 deletions
|
@ -1157,6 +1157,12 @@ class TestSendPortfolioOrganizationUpdateEmail(unittest.TestCase):
|
||||||
mock_filter.assert_called_once_with(
|
mock_filter.assert_called_once_with(
|
||||||
portfolio=self.portfolio, roles__contains=[UserPortfolioRoleChoices.ORGANIZATION_ADMIN]
|
portfolio=self.portfolio, roles__contains=[UserPortfolioRoleChoices.ORGANIZATION_ADMIN]
|
||||||
)
|
)
|
||||||
|
mock_send_templated_email.assert_any_call(
|
||||||
|
"emails/portfolio_org_update_notification.txt",
|
||||||
|
"emails/portfolio_org_update_notification_subject.txt",
|
||||||
|
to_address=self.admin_user1.email,
|
||||||
|
context=ANY,
|
||||||
|
)
|
||||||
mock_send_templated_email.assert_any_call(
|
mock_send_templated_email.assert_any_call(
|
||||||
"emails/portfolio_org_update_notification.txt",
|
"emails/portfolio_org_update_notification.txt",
|
||||||
"emails/portfolio_org_update_notification_subject.txt",
|
"emails/portfolio_org_update_notification_subject.txt",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue