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

Function test_restart

tests/test_ProgressPrinter.py:66–75  ·  view source on GitHub ↗

Tests that calling restart outputs a line indicating such.

(caplog)

Source from the content-addressed store, hash-verified

64
65
66def test_restart(caplog):
67 """
68 Tests that calling restart outputs a line indicating such.
69 """
70 printer = ProgressPrinter(should_print=True, display_interval=1.0)
71 printer.restart()
72
73 out = caplog.text
74 assert_("R" in out)
75 assert_("restart" in out)
76
77
78def test_iteration(ok_small, caplog):

Callers

nothing calls this directly

Calls 2

restartMethod · 0.95
ProgressPrinterClass · 0.90

Tested by

no test coverage detected