Files
dvc/tests/test_dependency.py
T
Ruslan Kuprieiev 53e4e1c0a9 dvc: use local scheme as default
There is no way to detect if some path is a valid path in a general
case, since every filesystem has its own requirements and limitations.
Instead, just default to a local path and let fs handle the rest.

Fixes #1433

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-12-14 14:47:37 +02:00

16 lines
396 B
Python

from dvc.stage import Stage
from dvc.dependency import _get, DEP_MAP
from tests.test_output import TestOutScheme
class TestDepScheme(TestOutScheme):
MAP = DEP_MAP
TESTS = TestOutScheme.TESTS.copy()
TESTS['http://example.com/path/to/file'] = 'http'
TESTS['https://example.com/path/to/file'] = 'https'
def _get(self, path):
return _get(Stage(self.dvc), path, None)