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

Method test_error_response

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

Source from the content-addressed store, hash-verified

163 client.send_dict({"text": "hello!"})
164
165 def test_error_response(self):
166 client = WebhookClient(url="http://localhost:8888/error")
167 resp: WebhookResponse = client.send_dict({"text": "hello!"})
168 self.assertEqual(500, resp.status_code)
169 self.assertTrue(resp.body.startswith("<!DOCTYPE html>"))
170
171 def test_proxy_issue_714(self):
172 client = WebhookClient(url="http://localhost:8888", proxy="http://invalid-host:9999")

Callers

nothing calls this directly

Calls 2

send_dictMethod · 0.95
WebhookClientClass · 0.90

Tested by

no test coverage detected