data: status: use ui.progress instead of ui.status (#9662)

With all fetch and checkout related things that we've done in the recent past,
we now have all the mechanisms necessary to provide actual progress (no total,
but still better than spinner) during `dvc data status` operations.
This commit is contained in:
Ruslan Kuprieiev
2023-06-26 00:10:44 +03:00
committed by GitHub
parent 7041fa5f42
commit cf976f17ae
2 changed files with 26 additions and 8 deletions
+3 -3
View File
@@ -75,7 +75,8 @@ def test_json(dvc, mocker, capsys, mocked_status, args, to_omit):
def test_no_changes_repo(dvc, scm, capsys):
assert main(["data", "status"]) == 0
assert capsys.readouterr() == ("No changes.\n", "")
out, _ = capsys.readouterr()
assert out == "No changes.\n"
def test_empty_scm_repo(tmp_dir, capsys):
@@ -83,7 +84,7 @@ def test_empty_scm_repo(tmp_dir, capsys):
Repo.init()
assert main(["data", "status"]) == 0
out, err = capsys.readouterr()
out, _ = capsys.readouterr()
assert (
out
== """\
@@ -91,7 +92,6 @@ No changes in an empty git repo.
(there are changes not tracked by dvc, use "git status" to see)
"""
)
assert not err
@pytest.mark.parametrize(