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_markdown: Reduce object generation in a loop.

Tim Abbott73f0ca91f286
diff --git a/zerver/tests/test_markdown.py b/zerver/tests/test_markdown.py
index a0fe13f8f7c..8233569f0f8 100644
--- a/zerver/tests/test_markdown.py
+++ b/zerver/tests/test_markdown.py
@@ -310,7 +310,7 @@ class MarkdownMiscTest(ZulipTestCase):
mention_backend = MentionBackend(realm.id)
content = ""
- for i in range(40):
+ for i in range(5):
group_name = f"group{i}"
check_add_user_group(realm, group_name, [hamlet, cordelia], acting_user=othello)
content += f" @*{group_name}*"