test: add test for phony targets

Fixes #342

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2018-01-05 11:39:34 +02:00
parent 964922f530
commit 9c7b142883
+11
View File
@@ -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))