MCPcopy Create free account
hub / github.com/pallets/quart / test__handle_exception

Function test__handle_exception

tests/test_asgi.py:334–346  ·  view source on GitHub ↗
(
    propagate_exceptions: bool, testing: bool, raises: bool
)

Source from the content-addressed store, hash-verified

332 ],
333)
334async def test__handle_exception(
335 propagate_exceptions: bool, testing: bool, raises: bool
336) -> None:
337 app = Mock()
338 app.config = {}
339 app.config["PROPAGATE_EXCEPTIONS"] = propagate_exceptions
340 app.testing = testing
341
342 if raises:
343 with pytest.raises(ValueError):
344 await _handle_exception(app, ValueError())
345 else:
346 await _handle_exception(app, ValueError())

Callers

nothing calls this directly

Calls 1

_handle_exceptionFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…