Model testing page
(request: Request)
| 323 | |
| 324 | @app.get("/test", response_class=HTMLResponse) |
| 325 | async def test_page(request: Request): |
| 326 | """Model testing page""" |
| 327 | guard_response = _ensure_admin_page_session(request) |
| 328 | if guard_response is not None: |
| 329 | return guard_response |
| 330 | test_file = static_path / "test.html" |
| 331 | if test_file.exists(): |
| 332 | return _static_page_response(test_file) |
| 333 | return HTMLResponse(content="<h1>Test Page Not Found</h1>", status_code=404) |
| 334 | |
| 335 | |
| 336 | @app.get("/metrics") |
nothing calls this directly
no test coverage detected