data: status: get rid of --not-in-remote

This commit is contained in:
Ruslan Kuprieiev
2023-02-21 12:32:40 +02:00
parent 968a8fde99
commit 37761a2627
4 changed files with 3 additions and 14 deletions
+2 -4
View File
@@ -402,7 +402,7 @@ 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", not_in_remote=True) == {
assert dvc.data_status(untracked_files="all") == {
**EMPTY_STATUS,
"untracked": M.unordered("foobar.dvc", "dir.dvc", ".gitignore"),
"committed": {"added": M.unordered("foobar", join("dir", ""))},
@@ -410,9 +410,7 @@ def test_missing_remote_cache(M, tmp_dir, dvc, scm, local_remote):
"git": M.dict(),
}
assert dvc.data_status(
granular=True, untracked_files="all", not_in_remote=True
) == {
assert dvc.data_status(granular=True, untracked_files="all") == {
**EMPTY_STATUS,
"untracked": M.unordered("foobar.dvc", "dir.dvc", ".gitignore"),
"committed": {
-1
View File
@@ -51,7 +51,6 @@ def test_cli(dvc, mocker, mocked_status):
assert cmd.run() == 0
status.assert_called_once_with(
untracked_files="all",
not_in_remote=False,
remote_refresh=False,
granular=True,
)