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

Function test_untracked_newly_added_files

tests/func/test_data_status.py:239–249  ·  view source on GitHub ↗
(tmp_dir, dvc, scm)

Source from the content-addressed store, hash-verified

237
238
239def test_untracked_newly_added_files(tmp_dir, dvc, scm):
240 tmp_dir.gen({"dir": {"foo": "foo", "bar": "bar"}})
241 tmp_dir.gen("foobar", "foobar")
242
243 expected = {
244 **EMPTY_STATUS,
245 "untracked": M.unordered(join("dir", "foo"), join("dir", "bar"), "foobar"),
246 "git": M.dict(),
247 }
248 assert dvc.data_status(untracked_files="all") == expected
249 assert dvc.data_status(granular=True, untracked_files="all") == expected
250
251
252def test_missing_cache_workspace_exists(tmp_dir, dvc, scm):

Callers

nothing calls this directly

Calls 2

joinFunction · 0.85
genMethod · 0.45

Tested by

no test coverage detected