data status: exclude remote status by default

This commit is contained in:
dberenbaum
2023-05-06 18:21:11 +03:00
committed by Ruslan Kuprieiev
parent 8ecc66ae9a
commit 2db07b047e
4 changed files with 21 additions and 6 deletions
+10 -2
View File
@@ -402,7 +402,13 @@ def test_missing_remote_cache(M, tmp_dir, dvc, scm, local_remote):
tmp_dir.dvc_gen({"dir": {"foo": "foo", "bar": "bar"}})
tmp_dir.dvc_gen("foobar", "foobar")
assert dvc.data_status(untracked_files="all") == {
assert dvc.data_status() == {
**EMPTY_STATUS,
"committed": {"added": M.unordered("foobar", join("dir", ""))},
"git": M.dict(),
}
assert dvc.data_status(untracked_files="all", not_in_remote=True) == {
**EMPTY_STATUS,
"untracked": M.unordered("foobar.dvc", "dir.dvc", ".gitignore"),
"committed": {"added": M.unordered("foobar", join("dir", ""))},
@@ -410,7 +416,9 @@ def test_missing_remote_cache(M, tmp_dir, dvc, scm, local_remote):
"git": M.dict(),
}
assert dvc.data_status(granular=True, untracked_files="all") == {
assert dvc.data_status(
granular=True, untracked_files="all", not_in_remote=True
) == {
**EMPTY_STATUS,
"untracked": M.unordered("foobar.dvc", "dir.dvc", ".gitignore"),
"committed": {