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

Method test_timeout_issue_712

tests/webhook/test_webhook.py:160–163  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

158 self.assertEqual("ok", resp.body)
159
160 def test_timeout_issue_712(self):
161 client = WebhookClient(url="http://localhost:8888/timeout", timeout=1)
162 with self.assertRaises(socket.timeout):
163 client.send_dict({"text": "hello!"})
164
165 def test_error_response(self):
166 client = WebhookClient(url="http://localhost:8888/error")

Callers

nothing calls this directly

Calls 2

send_dictMethod · 0.95
WebhookClientClass · 0.90

Tested by

no test coverage detected