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

Function test_werkzeug_passthrough_errors

tests/test_basic.py:1595–1606  ·  view source on GitHub ↗
(
    monkeypatch, debug, use_debugger, use_reloader, propagate_exceptions, app
)

Source from the content-addressed store, hash-verified

1593@pytest.mark.parametrize("use_reloader", [True, False])
1594@pytest.mark.parametrize("propagate_exceptions", [None, True, False])
1595def test_werkzeug_passthrough_errors(
1596 monkeypatch, debug, use_debugger, use_reloader, propagate_exceptions, app
1597):
1598 rv = {}
1599
1600 # Mocks werkzeug.serving.run_simple method
1601 def run_simple_mock(*args, **kwargs):
1602 rv["passthrough_errors"] = kwargs.get("passthrough_errors")
1603
1604 monkeypatch.setattr(werkzeug.serving, "run_simple", run_simple_mock)
1605 app.config["PROPAGATE_EXCEPTIONS"] = propagate_exceptions
1606 app.run(debug=debug, use_debugger=use_debugger, use_reloader=use_reloader)
1607
1608
1609def test_url_processors(app, client):

Callers

nothing calls this directly

Calls 1

runMethod · 0.80

Tested by

no test coverage detected