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

Method test_proxy_issue_714

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

Source from the content-addressed store, hash-verified

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")
173 with self.assertRaises(urllib.error.URLError):
174 client.send_dict({"text": "hello!"})
175
176 def test_user_agent_customization_issue_769(self):
177 client = WebhookClient(

Callers

nothing calls this directly

Calls 2

send_dictMethod · 0.95
WebhookClientClass · 0.90

Tested by

no test coverage detected