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.

message_edit: Avoid retyping variables.

Zixuan James Li2b1820cfcfed
diff --git a/zerver/tests/test_message_edit.py b/zerver/tests/test_message_edit.py
index 50bb956cc01..259aa5fbdcf 100644
--- a/zerver/tests/test_message_edit.py
+++ b/zerver/tests/test_message_edit.py
@@ -101,9 +101,9 @@ class EditMessageTestCase(ZulipTestCase):
self.login(user_email)
stream = self.make_stream(old_stream)
- new_stream = self.make_stream(new_stream)
+ stream_to = self.make_stream(new_stream)
self.subscribe(user_profile, stream.name)
- self.subscribe(user_profile, new_stream.name)
+ self.subscribe(user_profile, stream_to.name)
msg_id = self.send_stream_message(
user_profile, stream.name, topic_name=topic, content="First"
)
@@ -113,7 +113,7 @@ class EditMessageTestCase(ZulipTestCase):
self.send_stream_message(user_profile, stream.name, topic_name=topic, content="third")
- return (user_profile, stream, new_stream, msg_id, msg_id_lt)
+ return (user_profile, stream, stream_to, msg_id, msg_id_lt)
class EditMessagePayloadTest(EditMessageTestCase):