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

Function test_run_from_config

tests/test_basic.py:1882–1891  ·  view source on GitHub ↗
(
    monkeypatch, host, port, server_name, expect_host, expect_port, app
)

Source from the content-addressed store, hash-verified

1880 ),
1881)
1882def test_run_from_config(
1883 monkeypatch, host, port, server_name, expect_host, expect_port, app
1884):
1885 def run_simple_mock(hostname, port, *args, **kwargs):
1886 assert hostname == expect_host
1887 assert port == expect_port
1888
1889 monkeypatch.setattr(werkzeug.serving, "run_simple", run_simple_mock)
1890 app.config["SERVER_NAME"] = server_name
1891 app.run(host, port)
1892
1893
1894def test_max_cookie_size(app, client, recwarn):

Callers

nothing calls this directly

Calls 1

runMethod · 0.80

Tested by

no test coverage detected