Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
test_message_topics: Optimize test by limiting fetch_event_types.
Prakhar Pratyush7e20100ebd92
diff --git a/zerver/tests/test_message_topics.py b/zerver/tests/test_message_topics.pyindex eedfdfb5f88..ace69fa2974 100644--- a/zerver/tests/test_message_topics.py+++ b/zerver/tests/test_message_topics.py@@ -816,6 +816,7 @@ class EmptyTopicNameTest(ZulipTestCase):client_capabilities=ClientCapabilities(empty_topic_name=True, notification_settings_null=False),+ fetch_event_types=["update_message_flags", "message", "user_topic"],)self.assertEqual(state_data["unread_msgs"]["streams"][0]["topic"], "")self.assertEqual(state_data["unread_msgs"]["streams"][1]["topic"], "")@@ -830,6 +831,7 @@ class EmptyTopicNameTest(ZulipTestCase):client_capabilities=ClientCapabilities(empty_topic_name=False, notification_settings_null=False),+ fetch_event_types=["update_message_flags", "message", "user_topic"],)self.assertEqual(state_data["unread_msgs"]["streams"][0]["topic"], Message.EMPTY_TOPIC_FALLBACK_NAME