import: improve some details about the '--file' option.

This commit is contained in:
vyloy
2019-04-18 08:56:14 +08:00
parent b07c386d02
commit 01a28f2de9
4 changed files with 10 additions and 24 deletions
+7
View File
@@ -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"))