MCPcopy
hub / github.com/marimo-team/marimo / test_http_exception_other

Function test_http_exception_other

tests/_server/test_errors.py:67–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65
66
67async def test_http_exception_other():
68 # Test other HTTP exceptions
69 exc = HTTPException(status_code=404, detail="Not found")
70 response = await handle_error(Request({"type": "http"}), exc)
71 assert response.status_code == 404
72 assert response.body == b'{"detail":"Not found"}'
73
74
75async def test_marimo_http_exception():

Callers

nothing calls this directly

Calls 2

handle_errorFunction · 0.90
HTTPExceptionClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…