Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
test_message_edit_notifications: Take arbitrary request parameters.
Prakhar Pratyush54d2dc287624
diff --git a/zerver/tests/test_message_edit_notifications.py b/zerver/tests/test_message_edit_notifications.pyindex 208111b3cb5..e7c1082b5d9 100644--- a/zerver/tests/test_message_edit_notifications.py+++ b/zerver/tests/test_message_edit_notifications.py@@ -23,13 +23,9 @@ class EditMessageSideEffectsTest(ZulipTestCase):cordelia = self.example_user("cordelia")self.register_push_device(cordelia.id)- def _assert_update_does_not_notify_anybody(self, message_id: int, content: str) -> None:+ def _assert_update_does_not_notify_anybody(self, message_id: int, **request: str) -> None:url = "/json/messages/" + str(message_id)- request = dict(- content=content,- )-with (mock.patch("zerver.tornado.event_queue.maybe_enqueue_notifications") as m,self.captureOnCommitCallbacks(execute=True),@@ -85,7 +81,7 @@ class EditMessageSideEffectsTest(ZulipTestCase):return message_iddef _get_queued_data_for_message_update(- self, message_id: int, content: str, expect_short_circuit: bool = False+ self, *, message_id: int, expect_short_circuit: bool = False, **request: str) -> dict[str, Any]:"""This function updates a message with a post to@@ -106,10 +102,6 @@ class EditMessageSideEffectsTest(ZulipTestCase):"""url = "/json/messages/" + str(message_id)- request = dict(- content=content,- )-with (mock.patch("zerver.tornado.event_queue.maybe_enqueue_notifications") as m,self.captureOnCommitCallbacks(execute=True),