mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-04 15:28:27 +01:00
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]>
16 lines
396 B
Python
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)
|