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

Method test_send_dict

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

Source from the content-addressed store, hash-verified

152 self.assertEqual("ok", resp.body)
153
154 def test_send_dict(self):
155 client = WebhookClient("http://localhost:8888")
156 resp: WebhookResponse = client.send_dict({"text": "hello!"})
157 self.assertEqual(200, resp.status_code)
158 self.assertEqual("ok", resp.body)
159
160 def test_timeout_issue_712(self):
161 client = WebhookClient(url="http://localhost:8888/timeout", timeout=1)

Callers

nothing calls this directly

Calls 2

send_dictMethod · 0.95
WebhookClientClass · 0.90

Tested by

no test coverage detected