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

Function test_move_not_data_source

tests/func/test_move.py:61–69  ·  view source on GitHub ↗
(tmp_dir, dvc)

Source from the content-addressed store, hash-verified

59
60
61def test_move_not_data_source(tmp_dir, dvc):
62 tmp_dir.dvc_gen("foo", "foo")
63 dvc.run(cmd="cp foo file1", outs=["file1"], deps=["foo"], name="copy-foo-file1")
64
65 with pytest.raises(MoveNotDataSourceError):
66 dvc.move("file1", "dst")
67
68 assert main(["move", "file1", "dst"]) != 0
69 assert (tmp_dir / "file1").exists()
70
71
72def test_move_file_with_extension(tmp_dir, dvc):

Callers

nothing calls this directly

Calls 5

mainFunction · 0.90
dvc_genMethod · 0.80
moveMethod · 0.80
runMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected