Tests that invalid arguments are rejected.
(ok_small, num_iterations, runtime)
| 39 | ], |
| 40 | ) |
| 41 | def test_init_raises_invalid_arguments(ok_small, num_iterations, runtime): |
| 42 | """ |
| 43 | Tests that invalid arguments are rejected. |
| 44 | """ |
| 45 | sol = Solution(ok_small, [[1, 2, 3, 4]]) |
| 46 | |
| 47 | with assert_raises(ValueError): |
| 48 | Result(sol, Statistics(), num_iterations, runtime) |
| 49 | |
| 50 | |
| 51 | @pytest.mark.parametrize("num_iterations", [0, 1, 10]) |
nothing calls this directly
no test coverage detected