MCPcopy
hub / github.com/FlareSolverr/FlareSolverr / test_index_endpoint

Method test_index_endpoint

src/tests.py:43–50  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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')

Callers

nothing calls this directly

Calls 2

IndexResponseClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected