mirror of https://github.com/zulip/zulip.git
create_test_bot: Use delivery_email for login.
The `email` field won't actually work if EMAIL_ADDRESS_VISIBILITY_ADMINS is enabled.
This commit is contained in:
parent
0e317a8773
commit
5edc5ae1fb
|
@ -297,7 +297,7 @@ class ZulipTestCase(TestCase):
|
|||
|
||||
def create_test_bot(self, short_name: str, user_profile: UserProfile,
|
||||
assert_json_error_msg: str=None, **extras: Any) -> Optional[UserProfile]:
|
||||
self.login(user_profile.email)
|
||||
self.login(user_profile.delivery_email)
|
||||
bot_info = {
|
||||
'short_name': short_name,
|
||||
'full_name': 'Foo Bot',
|
||||
|
|
Loading…
Reference in New Issue