Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 22 additions & 26 deletions dvc_ssh/tests/test_dvc.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
from dvc.testing.test_remote import ( # noqa, pylint: disable=unused-import
TestRemote,
)
from dvc.testing.test_workspace import ( # noqa, pylint: disable=unused-import
TestAdd,
TestImport,
)
from dvc.testing.test_workspace import TestAdd as _TestAdd
from dvc.testing.test_workspace import TestImport as _TestImport


@pytest.fixture
Expand All @@ -24,31 +22,29 @@ def workspace(make_workspace, cloud_name):
yield make_workspace(name="workspace", typ=cloud_name)


@pytest.fixture
def stage_md5():
return "dc24e1271084ee317ac3c2656fb8812b"

class TestImport(_TestImport):
@pytest.fixture
def stage_md5(self):
return "dc24e1271084ee317ac3c2656fb8812b"

@pytest.fixture
def is_object_storage():
return False
@pytest.fixture
def is_object_storage(self):
return False

@pytest.fixture
def dir_md5(self):
return "b6dcab6ccd17ca0a8bf4a215a37d14cc.dir"

@pytest.fixture
def dir_md5():
return "b6dcab6ccd17ca0a8bf4a215a37d14cc.dir"

class TestAdd(_TestAdd):
@pytest.fixture
def hash_name(self):
return "md5"

@pytest.fixture
def hash_name():
return "md5"
@pytest.fixture
def hash_value(self):
return "8c7dd922ad47494fc02c388e12c00eac"


@pytest.fixture
def hash_value():
return "8c7dd922ad47494fc02c388e12c00eac"


@pytest.fixture
def dir_hash_value(dir_md5):
return "b6dcab6ccd17ca0a8bf4a215a37d14cc.dir"
@pytest.fixture
def dir_hash_value(self):
return "b6dcab6ccd17ca0a8bf4a215a37d14cc.dir"