mirror of https://github.com/zulip/zulip.git
tests: Fix send_message calls in test_soft_deactivation.py.
This commit is contained in:
parent
6475b25a00
commit
fba754224c
|
@ -37,9 +37,8 @@ class UserSoftDeactivationTests(ZulipTestCase):
|
||||||
|
|
||||||
# We are sending this message to ensure that users have at least
|
# We are sending this message to ensure that users have at least
|
||||||
# one UserMessage row.
|
# one UserMessage row.
|
||||||
self.send_message(users[0].email,
|
self.send_huddle_message(users[0].email,
|
||||||
[user.email for user in users],
|
[user.email for user in users])
|
||||||
Recipient.HUDDLE)
|
|
||||||
do_soft_deactivate_users(users)
|
do_soft_deactivate_users(users)
|
||||||
|
|
||||||
for user in users:
|
for user in users:
|
||||||
|
@ -83,9 +82,8 @@ class UserSoftDeactivationTests(ZulipTestCase):
|
||||||
self.example_user('iago'),
|
self.example_user('iago'),
|
||||||
self.example_user('cordelia'),
|
self.example_user('cordelia'),
|
||||||
]
|
]
|
||||||
self.send_message(users[0].email,
|
self.send_huddle_message(users[0].email,
|
||||||
[user.email for user in users],
|
[user.email for user in users])
|
||||||
Recipient.HUDDLE)
|
|
||||||
do_soft_deactivate_users(users)
|
do_soft_deactivate_users(users)
|
||||||
for user in users:
|
for user in users:
|
||||||
self.assertTrue(user.long_term_idle)
|
self.assertTrue(user.long_term_idle)
|
||||||
|
|
Loading…
Reference in New Issue