minor: Use local instead of class self.bot_user.

This commit is contained in:
Steve Howell
2020-03-27 22:57:33 +00:00
committed by Tim Abbott
parent e29ddd0ce0
commit f329fe465d

View File

@@ -31,11 +31,11 @@ class TestGenericOutgoingWebhookService(ZulipTestCase):
u'message': wide_message_dict,
u'trigger': 'mention',
}
self.bot_user = get_user("outgoing-webhook@zulip.com", get_realm("zulip"))
bot_user = get_user("outgoing-webhook@zulip.com", get_realm("zulip"))
service_class = get_service_interface_class('whatever') # GenericOutgoingWebhookService
self.handler = service_class(service_name='test-service',
token='abcdef',
user_profile=self.bot_user)
user_profile=bot_user)
def test_process_success_response(self) -> None:
class Stub: