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

Function test_start_multiple_depot_plural

tests/test_ProgressPrinter.py:36–43  ·  view source on GitHub ↗

Tests that "depots" is plural when there are multiple depots.

(ok_small_multi_depot, caplog)

Source from the content-addressed store, hash-verified

34
35
36def test_start_multiple_depot_plural(ok_small_multi_depot, caplog):
37 """
38 Tests that "depots" is plural when there are multiple depots.
39 """
40 printer = ProgressPrinter(should_print=True, display_interval=1.0)
41 printer.start(ok_small_multi_depot)
42
43 assert_(f"{ok_small_multi_depot.num_depots} depots" in caplog.text)
44
45
46def test_end(ok_small, caplog):

Callers

nothing calls this directly

Calls 2

startMethod · 0.95
ProgressPrinterClass · 0.90

Tested by

no test coverage detected