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: Fix sender in empty alert words test.

Anders Kaseorg8f552535ce9e
diff --git a/zerver/tests/test_markdown.py b/zerver/tests/test_markdown.py
index 10007c268c0..46ae8fcc599 100644
--- a/zerver/tests/test_markdown.py
+++ b/zerver/tests/test_markdown.py
@@ -2296,7 +2296,9 @@ class MarkdownAlertTest(ZulipTestCase):
do_add_alert_words(user_profile, alert_words)
sender_user_profile = self.example_user("polonius")
msg = Message(
- sender=user_profile, sending_client=get_client("test"), realm=user_profile.realm
+ sender=sender_user_profile,
+ sending_client=get_client("test"),
+ realm=sender_user_profile.realm,
)
realm_alert_words_automaton = get_alert_word_automaton(sender_user_profile.realm)