mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 07:18:27 +01:00
dvc: checkout single file
Fixes #666 Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -16,7 +16,7 @@ class TestCheckout(TestRepro):
|
||||
def setUp(self):
|
||||
super(TestCheckout, self).setUp()
|
||||
|
||||
self.dvc.add(self.DATA_DIR)
|
||||
self.data_dir_stage = self.dvc.add(self.DATA_DIR)
|
||||
|
||||
self.orig = 'orig'
|
||||
shutil.copy(self.FOO, self.orig)
|
||||
@@ -35,6 +35,13 @@ class TestCheckout(TestRepro):
|
||||
self.assertTrue(filecmp.cmp(self.FOO, self.orig))
|
||||
|
||||
|
||||
class TestCheckoutSingleStage(TestCheckout):
|
||||
def test(self):
|
||||
self.dvc.checkout(self.foo_stage.path)
|
||||
self.dvc.checkout(self.data_dir_stage.path)
|
||||
self._test_checkout()
|
||||
|
||||
|
||||
class TestCheckoutCorruptedCacheFile(TestRepro):
|
||||
def test(self):
|
||||
cache = self.foo_stage.outs[0].cache
|
||||
|
||||
Reference in New Issue
Block a user