(self)
| 41 | self.assertEqual(404, body['status_code']) |
| 42 | |
| 43 | def test_index_endpoint(self): |
| 44 | res = self.app.get('/') |
| 45 | self.assertEqual(res.status_code, 200) |
| 46 | |
| 47 | body = IndexResponse(res.json) |
| 48 | self.assertEqual("FlareSolverr is ready!", body.msg) |
| 49 | self.assertEqual(utils.get_flaresolverr_version(), body.version) |
| 50 | self.assertIn("Chrome/", body.userAgent) |
| 51 | |
| 52 | def test_health_endpoint(self): |
| 53 | res = self.app.get('/health') |
nothing calls this directly
no test coverage detected