MCPcopy Index your code
hub / github.com/plotly/dash / test_port_env_fail_range

Function test_port_env_fail_range

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

Source from the content-addressed store, hash-verified

321
322
323def test_port_env_fail_range(empty_environ):
324 app = Dash()
325 with pytest.raises(Exception) as excinfo:
326 app.run(port="0")
327 assert (
328 excinfo.exconly()
329 == "AssertionError: Expecting an integer from 1 to 65535, found port=0"
330 )
331
332 with pytest.raises(Exception) as excinfo:
333 app.run(port="65536")
334 assert (
335 excinfo.exconly()
336 == "AssertionError: Expecting an integer from 1 to 65535, found port=65536"
337 )
338
339
340@pytest.mark.parametrize(

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…