Test org editor also emailed when org updated

This commit is contained in:
Erin Song 2025-03-17 14:49:05 -07:00
parent e7234c4ba4
commit 6e50339ffa
No known key found for this signature in database

View file

@ -1157,6 +1157,12 @@ class TestSendPortfolioOrganizationUpdateEmail(unittest.TestCase):
mock_filter.assert_called_once_with(
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(
"emails/portfolio_org_update_notification.txt",
"emails/portfolio_org_update_notification_subject.txt",