mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-26 07:18:31 +01:00
test: add test for phony targets
Fixes #342 Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -59,3 +59,14 @@ class TestReproChangedDeepData(TestReproChangedData):
|
||||
|
||||
self.assertTrue(filecmp.cmp(self.file1, self.BAR))
|
||||
self.assertTrue(filecmp.cmp(file2, self.BAR))
|
||||
|
||||
|
||||
class TestReproPhony(TestReproChangedData):
|
||||
def test(self):
|
||||
stage = self.dvc.run(deps=[self.file1])
|
||||
|
||||
self.swap_foo_with_bar()
|
||||
|
||||
self.dvc.reproduce([stage.path])
|
||||
|
||||
self.assertTrue(filecmp.cmp(self.file1, self.BAR))
|
||||
|
||||
Reference in New Issue
Block a user