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