Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

test_message_edit_notifications: Fix assertion that could never fail.

Prakhar Pratyush710035fb12fb
diff --git a/zerver/tests/test_message_edit_notifications.py b/zerver/tests/test_message_edit_notifications.py
index b325bc9542e..208111b3cb5 100644
--- a/zerver/tests/test_message_edit_notifications.py
+++ b/zerver/tests/test_message_edit_notifications.py
@@ -30,7 +30,10 @@ class EditMessageSideEffectsTest(ZulipTestCase):
content=content,
)
- with mock.patch("zerver.tornado.event_queue.maybe_enqueue_notifications") as m:
+ with (
+ mock.patch("zerver.tornado.event_queue.maybe_enqueue_notifications") as m,
+ self.captureOnCommitCallbacks(execute=True),
+ ):
result = self.client_patch(url, request)
self.assert_json_success(result)