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_events: Separate tests for send and update message events.

Prakhar Pratyushdb8229ae3247
diff --git a/zerver/tests/test_events.py b/zerver/tests/test_events.py
index 6adfd6446a2..a275c8c6d47 100644
--- a/zerver/tests/test_events.py
+++ b/zerver/tests/test_events.py
@@ -550,6 +550,9 @@ class NormalActionsTest(BaseAction):
check_message("events[0]", events[0])
assert events[0]["message"]["avatar_url"] is None
+ def test_stream_update_message_events(self) -> None:
+ self.send_stream_message(self.example_user("hamlet"), "Verona", "hello")
+
# Verify stream message editing - content only
message = Message.objects.order_by("-id")[0]
content = "new content"