def setUp(self): setup_mock_web_api_server(self) self.rtm = RTMClient( token="xoxp-1234", base_url="http://localhost:8888", auto_reconnect_enabled=False, )
def setUp(self): setup_mock_web_api_server(self) self.loop = asyncio.new_event_loop() asyncio.set_event_loop(self.loop) task = asyncio.ensure_future(self.mock_server(), loop=self.loop) self.loop.run_until_complete(asyncio.wait_for(task, 0.1)) self.client = slack.RTMClient( token="xoxb-valid", base_url="http://localhost:8765", auto_reconnect=False, run_async=False, ) self.client._web_client = slack.WebClient( token="xoxb-valid", base_url="http://localhost:8888", run_async=False, )
def setUp(self): setup_mock_web_api_server(self) self.client = slack.RTMClient(token="xoxp-1234", base_url="http://localhost:8888", auto_reconnect=False)