Skip to content

Commit 620d535

Browse files
committed
[qa] Fixes
1 parent f80a92d commit 620d535

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

openwisp_notifications/tests/test_notifications.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,9 @@ def test_send_batched_email_notifications_no_instance_id(self, mock_send_email):
963963
self.assertEqual(len(mail.outbox), 0)
964964

965965
@patch('openwisp_notifications.tasks.send_batched_email_notifications.apply_async')
966-
def test_send_batched_email_notifications_single_notification(self, mock_send_email):
966+
def test_send_batched_email_notifications_single_notification(
967+
self, mock_send_email
968+
):
967969
# Ensure no batch email template is used for a single batched notification
968970
self._create_notification()
969971
n = self._create_notification().pop()[1][0]
@@ -973,7 +975,6 @@ def test_send_batched_email_notifications_single_notification(self, mock_send_em
973975
self.assertEqual(len(mail.outbox), 2)
974976
self.assertIn(n.message, mail.outbox[0].body)
975977

976-
977978
# @override_settings(TIME_ZONE='UTC')
978979
@patch('openwisp_notifications.tasks.send_batched_email_notifications.apply_async')
979980
def test_batch_email_notification(self, mock_send_email):

0 commit comments

Comments
 (0)