mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-26 23:09:35 +01:00
Merge pull request #2950 from mroutis/tests-repo
tests: use dir_helpers on repo
This commit is contained in:
+3
-10
@@ -1,13 +1,6 @@
|
||||
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)
|
||||
def test_is_dvc_internal(dvc):
|
||||
assert dvc.is_dvc_internal(os.path.join("path", "to", ".dvc", "file"))
|
||||
assert not dvc.is_dvc_internal(os.path.join("path", "to-non-.dvc", "file"))
|
||||
|
||||
Reference in New Issue
Block a user