mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
tests: Fix send_message calls in test_user.py.
This commit is contained in:
@@ -519,7 +519,7 @@ class GetProfileTest(ZulipTestCase):
|
|||||||
# type: (str) -> Dict[Text, Any]
|
# type: (str) -> Dict[Text, Any]
|
||||||
# Assumes all users are example users in realm 'zulip'
|
# Assumes all users are example users in realm 'zulip'
|
||||||
user_profile = self.example_user(user_id)
|
user_profile = self.example_user(user_id)
|
||||||
self.send_message(user_profile.email, "Verona", Recipient.STREAM, "hello")
|
self.send_stream_message(user_profile.email, "Verona", "hello")
|
||||||
|
|
||||||
result = self.client_get("/api/v1/users/me", **self.api_auth(user_profile.email))
|
result = self.client_get("/api/v1/users/me", **self.api_auth(user_profile.email))
|
||||||
|
|
||||||
@@ -590,8 +590,8 @@ class GetProfileTest(ZulipTestCase):
|
|||||||
Ensure GET /users/me returns a proper pointer id after the pointer is updated
|
Ensure GET /users/me returns a proper pointer id after the pointer is updated
|
||||||
"""
|
"""
|
||||||
|
|
||||||
id1 = self.send_message(self.example_email("othello"), "Verona", Recipient.STREAM)
|
id1 = self.send_stream_message(self.example_email("othello"), "Verona")
|
||||||
id2 = self.send_message(self.example_email("othello"), "Verona", Recipient.STREAM)
|
id2 = self.send_stream_message(self.example_email("othello"), "Verona")
|
||||||
|
|
||||||
json = self.common_get_profile("hamlet")
|
json = self.common_get_profile("hamlet")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user