Tests that an invalid depot configuration is not accepted.
(
x: float,
y: float,
tw_early: int,
tw_late: int,
service_duration: int,
)
| 148 | ], |
| 149 | ) |
| 150 | def test_raises_for_invalid_depot_data( |
| 151 | x: float, |
| 152 | y: float, |
| 153 | tw_early: int, |
| 154 | tw_late: int, |
| 155 | service_duration: int, |
| 156 | ): |
| 157 | """ |
| 158 | Tests that an invalid depot configuration is not accepted. |
| 159 | """ |
| 160 | with assert_raises(ValueError): |
| 161 | Depot(x, y, tw_early, tw_late, service_duration) |
| 162 | |
| 163 | |
| 164 | def test_depot_initialises_data_correctly(): |