add: remove file (#9548)

* add: remove `file`

Follow up to #9547.

* Update add.py

* fix tests
This commit is contained in:
skshetry
2023-06-06 18:44:19 +05:45
committed by GitHub
parent 3759535d43
commit 36fd69be21
3 changed files with 7 additions and 13 deletions
+3 -2
View File
@@ -1,4 +1,5 @@
import os
import shutil
import textwrap
import pytest
@@ -138,10 +139,10 @@ def test_move_should_save_stage_info(tmp_dir, dvc):
def test_should_move_to_dir_on_non_default_stage_file(tmp_dir, dvc):
stage_file_name = "stage.dvc"
tmp_dir.gen({"file": "file_content"})
dvc.add("file", file=stage_file_name)
dvc.add("file")
shutil.move("file.dvc", "stage.dvc")
os.mkdir("directory")
dvc.move("file", "directory")