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.

tests: Mock Recipient.label.

Steve Howell63c0ed303da7
diff --git a/zerver/tests/test_signup.py b/zerver/tests/test_signup.py
index 85aa072b130..9e000ba088c 100644
--- a/zerver/tests/test_signup.py
+++ b/zerver/tests/test_signup.py
@@ -328,7 +328,7 @@ class AddNewUserHistoryTest(ZulipTestCase):
message = most_recent_message(user_profile)
self.assertEqual(message.recipient, recipient)
- with patch("zerver.models.get_display_recipient", return_value="recip"):
+ with patch("zerver.models.Recipient.label", return_value="recip"):
self.assertEqual(
repr(message),
"<Message: recip / / "