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

Function test_port_env_fail_str

tests/unit/test_configs.py:313–320  ·  view source on GitHub ↗
(empty_environ)

Source from the content-addressed store, hash-verified

311
312
313def test_port_env_fail_str(empty_environ):
314 app = Dash()
315 with pytest.raises(Exception) as excinfo:
316 app.run(port="garbage")
317 assert (
318 excinfo.exconly()
319 == "ValueError: Expecting an integer from 1 to 65535, found port='garbage'"
320 )
321
322
323def test_port_env_fail_range(empty_environ):

Callers

nothing calls this directly

Calls 2

runMethod · 0.95
DashClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…