mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
@@ -18,6 +18,10 @@ class Base(object):
|
||||
self.project = project
|
||||
self.root_dir = root_dir
|
||||
|
||||
@property
|
||||
def dir(self):
|
||||
return None
|
||||
|
||||
@staticmethod
|
||||
def is_repo(root_dir):
|
||||
return True
|
||||
|
||||
@@ -763,3 +763,9 @@ class TestReproShell(TestDvc):
|
||||
|
||||
with open(fname, 'r') as fd:
|
||||
self.assertEqual(os.getenv('SHELL'), fd.read().strip())
|
||||
|
||||
class TestReproNoSCM(TestRepro):
|
||||
def test(self):
|
||||
shutil.rmtree(self.dvc.scm.dir)
|
||||
ret = main(['repro', self.file1_stage])
|
||||
self.assertEqual(ret, 0)
|
||||
|
||||
Reference in New Issue
Block a user