Maximum runtime may not be negative.
(max_runtime: float)
| 7 | |
| 8 | @mark.parametrize("max_runtime", [-0.001, -1, -10.1]) |
| 9 | def test_raise_negative_parameters(max_runtime: float): |
| 10 | """ |
| 11 | Maximum runtime may not be negative. |
| 12 | """ |
| 13 | with assert_raises(ValueError): |
| 14 | MaxRuntime(max_runtime) |
| 15 | |
| 16 | |
| 17 | @mark.parametrize("max_runtime", [0.001, 1, 10.1]) |