MCPcopy
hub / github.com/pallets/flask / test_werkzeug_passthrough_errors

Function test_werkzeug_passthrough_errors

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

Source from the content-addressed store, hash-verified

1621@pytest.mark.parametrize("use_reloader", [True, False])
1622@pytest.mark.parametrize("propagate_exceptions", [None, True, False])
1623def test_werkzeug_passthrough_errors(
1624 monkeypatch, debug, use_debugger, use_reloader, propagate_exceptions, app
1625):
1626 rv = {}
1627
1628 # Mocks werkzeug.serving.run_simple method
1629 def run_simple_mock(*args, **kwargs):
1630 rv["passthrough_errors"] = kwargs.get("passthrough_errors")
1631
1632 monkeypatch.setattr(werkzeug.serving, "run_simple", run_simple_mock)
1633 app.config["PROPAGATE_EXCEPTIONS"] = propagate_exceptions
1634 app.run(debug=debug, use_debugger=use_debugger, use_reloader=use_reloader)
1635
1636
1637def test_url_processors(app, client):

Callers

nothing calls this directly

Calls 1

runMethod · 0.80

Tested by

no test coverage detected