diff --git a/dvc_hdfs/tests/test_dvc.py b/dvc_hdfs/tests/test_dvc.py index 1c3d3c9..3c3a7ff 100644 --- a/dvc_hdfs/tests/test_dvc.py +++ b/dvc_hdfs/tests/test_dvc.py @@ -24,31 +24,29 @@ def workspace(make_workspace, cloud_name): yield make_workspace(name="workspace", typ=cloud_name) -@pytest.fixture -def stage_md5(): - return "ec0943f83357f702033c98e70b853c8c" - - -@pytest.fixture -def is_object_storage(): - return False - +class TestImportHDFS(TestImport): + @pytest.fixture + def stage_md5(self): + return "ec0943f83357f702033c98e70b853c8c" -@pytest.fixture -def dir_md5(): - return "e6dcd267966dc628d732874f94ef4280.dir" + @pytest.fixture + def dir_md5(self): + pytest.skip("https://github.com/iterative/dvc-hdfs/issues/2") + @pytest.fixture + def is_object_storage(self): + return False -@pytest.fixture -def hash_name(): - return "checksum" +class TestAddHDFS(TestAdd): + @pytest.fixture + def hash_name(self): + return "checksum" -@pytest.fixture -def hash_value(): - return "000002000000000000000000a86fe4d846edc1bf4c355cb6112f141e" + @pytest.fixture + def hash_value(self): + return "000002000000000000000000a86fe4d846edc1bf4c355cb6112f141e" - -@pytest.fixture -def dir_hash_value(dir_md5): - pytest.skip("external outputs are broken for hdfs dirs") + @pytest.fixture + def dir_hash_value(self): + pytest.skip("external outputs are broken for hdfs dirs")