mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
test: test for unsupported outs/deps
Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -13,7 +13,7 @@ from dvc.remote.local import RemoteLOCAL
|
||||
|
||||
|
||||
class DependencyLOCAL(DependencyBase):
|
||||
REGEX = r'^(?P<path>(/+|.:\\+)?.*)$'
|
||||
REGEX = r'^(?P<path>(/+|.:\\+)?[^:]*)$'
|
||||
|
||||
DoesNotExistError = DependencyDoesNotExistError
|
||||
IsNotFileOrDirError = DependencyIsNotFileOrDirError
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
from dvc.dependency import _get
|
||||
from dvc.exceptions import DvcException
|
||||
|
||||
from tests.basic_env import TestDvc
|
||||
|
||||
|
||||
class TestUnsupported(TestDvc):
|
||||
def test(self):
|
||||
with self.assertRaises(DvcException):
|
||||
_get(None, 'unsupported://a/b', None)
|
||||
@@ -0,0 +1,10 @@
|
||||
from dvc.output import _get
|
||||
from dvc.exceptions import DvcException
|
||||
|
||||
from tests.basic_env import TestDvc
|
||||
|
||||
|
||||
class TestUnsupported(TestDvc):
|
||||
def test(self):
|
||||
with self.assertRaises(DvcException):
|
||||
_get(None, 'unsupported://a/b', None, None, None)
|
||||
Reference in New Issue
Block a user