Tests that invalid configurations are not accepted.
(
x: float,
y: float,
delivery: int,
pickup: int,
service: int,
tw_early: int,
tw_late: int,
release_time: int,
prize: int,
)
| 111 | ], |
| 112 | ) |
| 113 | def test_raises_for_invalid_client_data( |
| 114 | x: float, |
| 115 | y: float, |
| 116 | delivery: int, |
| 117 | pickup: int, |
| 118 | service: int, |
| 119 | tw_early: int, |
| 120 | tw_late: int, |
| 121 | release_time: int, |
| 122 | prize: int, |
| 123 | ): |
| 124 | """ |
| 125 | Tests that invalid configurations are not accepted. |
| 126 | """ |
| 127 | with assert_raises(ValueError): |
| 128 | Client( |
| 129 | x, |
| 130 | y, |
| 131 | [delivery], |
| 132 | [pickup], |
| 133 | service, |
| 134 | tw_early, |
| 135 | tw_late, |
| 136 | release_time, |
| 137 | prize, |
| 138 | ) |
| 139 | |
| 140 | |
| 141 | @pytest.mark.parametrize( |