(tmp_dir, dvc)
| 59 | |
| 60 | |
| 61 | def 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 | |
| 72 | def test_move_file_with_extension(tmp_dir, dvc): |