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

Method test_send

tests/slack_sdk/webhook/test_webhook.py:20–28  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

18 cleanup_mock_web_api_server(self)
19
20 def test_send(self):
21 client = WebhookClient("http://localhost:8888")
22
23 resp: WebhookResponse = client.send(text="hello!")
24 self.assertEqual(200, resp.status_code)
25 self.assertEqual("ok", resp.body)
26
27 resp = client.send(text="hello!", response_type="in_channel")
28 self.assertEqual("ok", resp.body)
29
30 def test_send_blocks(self):
31 client = WebhookClient("http://localhost:8888")

Callers

nothing calls this directly

Calls 2

sendMethod · 0.95
WebhookClientClass · 0.90

Tested by

no test coverage detected