(empty_environ)
| 321 | |
| 322 | |
| 323 | def 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( |