mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
import: improve some details about the '--file' option.
This commit is contained in:
@@ -176,3 +176,10 @@ class TestImportFilename(TestDvc):
|
||||
ret = main(["import", "--file", "bar.dvc", self.external_source])
|
||||
self.assertEqual(0, ret)
|
||||
self.assertTrue(os.path.exists("bar.dvc"))
|
||||
|
||||
os.remove("bar.dvc")
|
||||
os.mkdir("sub")
|
||||
|
||||
ret = main(["import", "--file", "sub/bar.dvc", self.external_source])
|
||||
self.assertEqual(0, ret)
|
||||
self.assertTrue(os.path.exists("sub/bar.dvc"))
|
||||
|
||||
Reference in New Issue
Block a user