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

Function test_run_from_config

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

Source from the content-addressed store, hash-verified

1908 ),
1909)
1910def test_run_from_config(
1911 monkeypatch, host, port, server_name, expect_host, expect_port, app
1912):
1913 def run_simple_mock(hostname, port, *args, **kwargs):
1914 assert hostname == expect_host
1915 assert port == expect_port
1916
1917 monkeypatch.setattr(werkzeug.serving, "run_simple", run_simple_mock)
1918 app.config["SERVER_NAME"] = server_name
1919 app.run(host, port)
1920
1921
1922def test_max_cookie_size(app, client, recwarn):

Callers

nothing calls this directly

Calls 1

runMethod · 0.80

Tested by

no test coverage detected