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

Function test_raises_for_invalid_client_data

tests/test_ProblemData.py:113–138  ·  view source on GitHub ↗

Tests that invalid configurations are not accepted.

(
    x: float,
    y: float,
    delivery: int,
    pickup: int,
    service: int,
    tw_early: int,
    tw_late: int,
    release_time: int,
    prize: int,
)

Source from the content-addressed store, hash-verified

111 ],
112)
113def test_raises_for_invalid_client_data(
114 x: float,
115 y: float,
116 delivery: int,
117 pickup: int,
118 service: int,
119 tw_early: int,
120 tw_late: int,
121 release_time: int,
122 prize: int,
123):
124 """
125 Tests that invalid configurations are not accepted.
126 """
127 with assert_raises(ValueError):
128 Client(
129 x,
130 y,
131 [delivery],
132 [pickup],
133 service,
134 tw_early,
135 tw_late,
136 release_time,
137 prize,
138 )
139
140
141@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

ClientClass · 0.90

Tested by

no test coverage detected