(
monkeypatch, host, port, server_name, expect_host, expect_port, app
)
| 1880 | ), |
| 1881 | ) |
| 1882 | def 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 | |
| 1894 | def test_max_cookie_size(app, client, recwarn): |