MCPcopy
hub / github.com/plotly/dash / test_proxy_success

Function test_proxy_success

tests/unit/test_configs.py:372–379  ·  view source on GitHub ↗
(mocker, caplog, empty_environ, proxy, host, port, path)

Source from the content-addressed store, hash-verified

370 ],
371)
372def 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
382def test_proxy_failure(mocker, empty_environ):

Callers

nothing calls this directly

Calls 3

runMethod · 0.95
DashClass · 0.90
formatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…