MCPcopy Index your code
hub / github.com/slackapi/python-slack-sdk / test_token_param

Method test_token_param

tests/web/test_web_client.py:199–206  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

197 self.assertTrue(len(users) == 4)
198
199 def test_token_param(self):
200 client = WebClient(base_url="http://localhost:8888")
201 with self.assertRaises(err.SlackApiError):
202 client.users_list()
203 resp = client.users_list(token="xoxb-users_list_pagination")
204 self.assertIsNone(resp["error"])
205 with self.assertRaises(err.SlackApiError):
206 client.users_list()
207
208 @async_test
209 async def test_token_param_async(self):

Callers

nothing calls this directly

Calls 2

users_listMethod · 0.95
WebClientClass · 0.90

Tested by

no test coverage detected