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

Function test_add_client_with_multidimensional_load

tests/test_Model.py:115–123  ·  view source on GitHub ↗

Smoke test that checks if multidimensional load is set correctly.

()

Source from the content-addressed store, hash-verified

113
114
115def test_add_client_with_multidimensional_load():
116 """
117 Smoke test that checks if multidimensional load is set correctly.
118 """
119 model = Model()
120 client = model.add_client(x=1, y=2, delivery=[3, 4], pickup=[5, 6])
121
122 assert_equal(client.delivery, [3, 4])
123 assert_equal(client.pickup, [5, 6])
124
125
126def test_add_depot_attributes():

Callers

nothing calls this directly

Calls 2

add_clientMethod · 0.95
ModelClass · 0.90

Tested by

no test coverage detected