MCPcopy Create free account
hub / github.com/PyVRP/PyVRP / test_raises_for_invalid_depot_data

Function test_raises_for_invalid_depot_data

tests/test_ProblemData.py:150–161  ·  view source on GitHub ↗

Tests that an invalid depot configuration is not accepted.

(
    x: float,
    y: float,
    tw_early: int,
    tw_late: int,
    service_duration: int,
)

Source from the content-addressed store, hash-verified

148 ],
149)
150def 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
164def test_depot_initialises_data_correctly():

Callers

nothing calls this directly

Calls 1

DepotClass · 0.90

Tested by

no test coverage detected