(mocker, caplog, empty_environ, proxy, host, port, path)
| 370 | ], |
| 371 | ) |
| 372 | def test_proxy_success(mocker, caplog, empty_environ, proxy, host, port, path): |
| 373 | proxystr = "http://{}:{}::{}".format(host, port, proxy) |
| 374 | app = Dash(url_base_pathname=path) |
| 375 | mocker.patch.object(app.server, "run") |
| 376 | |
| 377 | app.run(proxy=proxystr, host=host, port=port) |
| 378 | |
| 379 | assert "Dash is running on {}{}\n".format(proxy, path) in caplog.text |
| 380 | |
| 381 | |
| 382 | def test_proxy_failure(mocker, empty_environ): |