(self)
| 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") |
nothing calls this directly
no test coverage detected