mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-05 23:09:32 +01:00
16 lines
539 B
Python
16 lines
539 B
Python
import mock
|
|
from unittest import TestCase
|
|
|
|
from dvc.remote.base import RemoteBase, RemoteMissingDepsError
|
|
from dvc.remote import REMOTES, RemoteLOCAL
|
|
|
|
|
|
class TestMissingDeps(TestCase):
|
|
def test(self):
|
|
remotes = REMOTES + [RemoteLOCAL, RemoteBase]
|
|
for remote_class in remotes:
|
|
REQUIRES = {"foo": None, "bar": None, "mock": mock}
|
|
with mock.patch.object(remote_class, "REQUIRES", REQUIRES):
|
|
with self.assertRaises(RemoteMissingDepsError):
|
|
remote_class(None, {})
|