MCPcopy
hub / github.com/treeverse/dvc / test_default

Function test_default

tests/unit/test_progress.py:39–48  ·  view source on GitHub ↗
(caplog, capsys, mocker)

Source from the content-addressed store, hash-verified

37
38
39def test_default(caplog, capsys, mocker):
40 # simulate interactive terminal
41 mocker.patch("sys.stdout.isatty", return_value=True)
42 with caplog.at_level(logging.INFO, logger="dvc"):
43 for _ in Tqdm(range(10)):
44 pass
45
46 out_err = capsys.readouterr()
47 assert not out_err.out
48 assert "0/10" in out_err.err

Callers

nothing calls this directly

Calls 1

TqdmClass · 0.90

Tested by

no test coverage detected