(empty_environ)
| 311 | |
| 312 | |
| 313 | def 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 | |
| 323 | def test_port_env_fail_range(empty_environ): |