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

Function test_service_time_specification

tests/test_read.py:226–235  ·  view source on GitHub ↗

Tests that specifying the service time as a specification (key-value pair) results in a uniform service time for all clients.

()

Source from the content-addressed store, hash-verified

224
225
226def test_service_time_specification():
227 """
228 Tests that specifying the service time as a specification (key-value pair)
229 results in a uniform service time for all clients.
230 """
231 data = read("data/ServiceTimeSpecification.txt")
232
233 # Clients should all have the same service time.
234 services = [client.service_duration for client in data.clients()]
235 assert_allclose(services, 360)
236
237
238def test_multiple_depots():

Callers

nothing calls this directly

Calls 2

readFunction · 0.90
clientsMethod · 0.80

Tested by

no test coverage detected