mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
test: add test for adding same data in and inside dir
Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -59,6 +59,17 @@ class TestAddTrackedFile(TestDvc):
|
||||
self.dvc.add(fname)
|
||||
|
||||
|
||||
class TestAddDirWithExistingCache(TestDvc):
|
||||
def test(self):
|
||||
dname = 'a'
|
||||
fname = os.path.join(dname, 'b')
|
||||
os.mkdir(dname)
|
||||
shutil.copyfile(self.FOO, fname)
|
||||
|
||||
self.dvc.add(self.FOO)
|
||||
self.dvc.add(dname)
|
||||
|
||||
|
||||
class TestCmdAdd(TestDvc):
|
||||
def test(self):
|
||||
ret = main(['add',
|
||||
|
||||
Reference in New Issue
Block a user