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

Function test_run_defaults

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

Source from the content-addressed store, hash-verified

1843
1844
1845def test_run_defaults(monkeypatch, app):
1846 rv = {}
1847
1848 # Mocks werkzeug.serving.run_simple method
1849 def run_simple_mock(*args, **kwargs):
1850 rv["result"] = "running..."
1851
1852 monkeypatch.setattr(werkzeug.serving, "run_simple", run_simple_mock)
1853 app.run()
1854 assert rv["result"] == "running..."
1855
1856
1857def test_run_server_port(monkeypatch, app):

Callers

nothing calls this directly

Calls 1

runMethod · 0.80

Tested by

no test coverage detected