(
monkeypatch, host, port, server_name, expect_host, expect_port, app
)
| 1908 | ), |
| 1909 | ) |
| 1910 | def 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 | |
| 1922 | def test_max_cookie_size(app, client, recwarn): |