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

Function test_init_raises_invalid_arguments

tests/test_Result.py:41–48  ·  view source on GitHub ↗

Tests that invalid arguments are rejected.

(ok_small, num_iterations, runtime)

Source from the content-addressed store, hash-verified

39 ],
40)
41def test_init_raises_invalid_arguments(ok_small, num_iterations, runtime):
42 """
43 Tests that invalid arguments are rejected.
44 """
45 sol = Solution(ok_small, [[1, 2, 3, 4]])
46
47 with assert_raises(ValueError):
48 Result(sol, Statistics(), num_iterations, runtime)
49
50
51@pytest.mark.parametrize("num_iterations", [0, 1, 10])

Callers

nothing calls this directly

Calls 3

SolutionClass · 0.90
ResultClass · 0.90
StatisticsClass · 0.90

Tested by

no test coverage detected