test: test for unsupported outs/deps

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2018-08-04 19:59:23 +03:00
parent 75a6352d3d
commit b5b8b8d06c
3 changed files with 21 additions and 1 deletions
+1 -1
View File
@@ -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
+10
View File
@@ -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)
+10
View File
@@ -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)