mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
minor: Use local instead of class self.bot_user.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user