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

Function test_run_defaults

tests/test_basic.py:1873–1882  ·  view source on GitHub ↗
(monkeypatch, app)

Source from the content-addressed store, hash-verified

1871
1872
1873def test_run_defaults(monkeypatch, app):
1874 rv = {}
1875
1876 # Mocks werkzeug.serving.run_simple method
1877 def run_simple_mock(*args, **kwargs):
1878 rv["result"] = "running..."
1879
1880 monkeypatch.setattr(werkzeug.serving, "run_simple", run_simple_mock)
1881 app.run()
1882 assert rv["result"] == "running..."
1883
1884
1885def test_run_server_port(monkeypatch, app):

Callers

nothing calls this directly

Calls 1

runMethod · 0.80

Tested by

no test coverage detected