MCPcopy Index your code
hub / github.com/PyVRP/PyVRP / test_get_depots

Function test_get_depots

tests/test_Model.py:242–253  ·  view source on GitHub ↗

Tests the ``depots`` property.

()

Source from the content-addressed store, hash-verified

240
241
242def test_get_depots():
243 """
244 Tests the ``depots`` property.
245 """
246 model = Model()
247 depot1 = model.add_depot(0, 0)
248 depot2 = model.add_depot(0, 0)
249
250 # Test that we can get the depots by index, or as a list.
251 assert_equal(model.depots[0], depot1)
252 assert_equal(model.depots[1], depot2)
253 assert_equal(model.depots, [depot1, depot2])
254
255
256def test_get_locations():

Callers

nothing calls this directly

Calls 2

add_depotMethod · 0.95
ModelClass · 0.90

Tested by

no test coverage detected