Files
dvc/tests/unit/test_repo.py
T
2019-03-17 14:49:49 -07:00

14 lines
390 B
Python

import os
from tests.basic_env import TestDvc
class TestIsDvcInternal(TestDvc):
def test_return_false_on_non_dvc_file(self):
path = os.path.join("path", "to-non-.dvc", "file")
self.assertFalse(self.dvc.is_dvc_internal(path))
def test_return_true_on_dvc_internal_file(self):
path = os.path.join("path", "to", ".dvc", "file")
self.assertTrue(path)