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:
Tim Abbott 2019-11-15 17:20:23 -08:00
parent 0e317a8773
commit 5edc5ae1fb
1 changed files with 1 additions and 1 deletions

View File

@ -297,7 +297,7 @@ class ZulipTestCase(TestCase):
def create_test_bot(self, short_name: str, user_profile: UserProfile, def create_test_bot(self, short_name: str, user_profile: UserProfile,
assert_json_error_msg: str=None, **extras: Any) -> Optional[UserProfile]: assert_json_error_msg: str=None, **extras: Any) -> Optional[UserProfile]:
self.login(user_profile.email) self.login(user_profile.delivery_email)
bot_info = { bot_info = {
'short_name': short_name, 'short_name': short_name,
'full_name': 'Foo Bot', 'full_name': 'Foo Bot',