-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Unify batch exports setting around one common setting (#25219)
- Loading branch information
1 parent
1f7f5d6
commit fa152e8
Showing
3 changed files
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -191,14 +191,14 @@ def test_send_batch_export_run_failure_with_settings(self, MockEmailMessage: Mag | |
) | ||
|
||
self._create_user("[email protected]") | ||
self.user.partial_notification_settings = {"batch_export_run_failure": False} | ||
self.user.partial_notification_settings = {"plugin_disabled": False} | ||
self.user.save() | ||
|
||
send_batch_export_run_failure(batch_export_run.id) | ||
# Should only be sent to user2 | ||
assert mocked_email_messages[0].to == [{"recipient": "[email protected]", "raw_email": "[email protected]"}] | ||
|
||
self.user.partial_notification_settings = {"batch_export_run_failure": True} | ||
self.user.partial_notification_settings = {"plugin_disabled": True} | ||
self.user.save() | ||
|
||
send_batch_export_run_failure(batch_export_run.id) | ||
|