MCPcopy Create free account
hub / github.com/pallets/flask / test_baseexception_error_handling

Function test_baseexception_error_handling

tests/test_basic.py:919–927  ·  view source on GitHub ↗
(app, client)

Source from the content-addressed store, hash-verified

917
918
919def test_baseexception_error_handling(app, client):
920 app.testing = False
921
922 @app.route("/")
923 def broken_func():
924 raise KeyboardInterrupt()
925
926 with pytest.raises(KeyboardInterrupt):
927 client.get("/")
928
929
930def test_before_request_and_routing_errors(app, client):

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected