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

Function test_raises_no_profiles

tests/test_ProblemData.py:792–801  ·  view source on GitHub ↗

Tests that passing no profiles (i.e., no distance and duration matrices) raises an error.

(ok_small, distances, durations)

Source from the content-addressed store, hash-verified

790 ("distances", "durations"), [([], []), ([], None), (None, [])]
791)
792def test_raises_no_profiles(ok_small, distances, durations):
793 """
794 Tests that passing no profiles (i.e., no distance and duration matrices)
795 raises an error.
796 """
797 with assert_raises((ValueError, IndexError)):
798 ok_small.replace(
799 distance_matrices=distances,
800 duration_matrices=durations,
801 )
802
803
804def test_raises_inconsistent_profiles(ok_small):

Callers

nothing calls this directly

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected