Skip to content

Commit 5a784f1

Browse files
committed
tests: comply with new test framework
1 parent 2e0b884 commit 5a784f1

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

dvc_hdfs/tests/test_dvc.py

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,21 @@
33
from dvc.testing.test_remote import ( # noqa, pylint: disable=unused-import
44
TestRemote,
55
)
6-
from dvc.testing.test_workspace import ( # noqa, pylint: disable=unused-import
7-
TestAdd,
8-
TestImport,
9-
)
10-
11-
12-
@pytest.fixture
13-
def cloud_name():
14-
return "hdfs"
6+
from dvc.testing.test_workspace import TestAdd as _TestAdd
7+
from dvc.testing.test_workspace import TestImport as _TestImport
158

169

1710
@pytest.fixture
18-
def remote(make_remote, cloud_name):
19-
yield make_remote(name="upstream", typ=cloud_name)
11+
def remote(make_remote):
12+
yield make_remote(name="upstream", typ="hdfs")
2013

2114

2215
@pytest.fixture
23-
def workspace(make_workspace, cloud_name):
24-
yield make_workspace(name="workspace", typ=cloud_name)
16+
def workspace(make_workspace):
17+
yield make_workspace(name="workspace", typ="hdfs")
2518

2619

27-
class TestImportHDFS(TestImport):
20+
class TestImport(_TestImport):
2821
@pytest.fixture
2922
def stage_md5(self):
3023
return "ec0943f83357f702033c98e70b853c8c"
@@ -38,7 +31,7 @@ def is_object_storage(self):
3831
return False
3932

4033

41-
class TestAddHDFS(TestAdd):
34+
class TestAdd(_TestAdd):
4235
@pytest.fixture
4336
def hash_name(self):
4437
return "checksum"

0 commit comments

Comments
 (0)