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

Function test_raises_inconsistent_profiles

tests/test_ProblemData.py:804–810  ·  view source on GitHub ↗

Tests that passing an inconsistent number of distance and duration matrices raises an error.

(ok_small)

Source from the content-addressed store, hash-verified

802
803
804def test_raises_inconsistent_profiles(ok_small):
805 """
806 Tests that passing an inconsistent number of distance and duration matrices
807 raises an error.
808 """
809 with assert_raises(ValueError):
810 ok_small.replace(distance_matrices=ok_small.distance_matrices() * 2)
811
812
813def test_client_group_attribute_access():

Callers

nothing calls this directly

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected