mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-06 07:18:28 +01:00
Related to #1629 Speeds up HDFS tests significantly. E.g. ExternalHDFS test goes from 600 sec to 190sec. test_open_external[HDFS] from 160sec to 3sec. Signed-off-by: Ruslan Kuprieiev <[email protected]>
17 lines
378 B
Python
17 lines
378 B
Python
import os
|
|
import sys
|
|
import pytest
|
|
|
|
from dvc.dependency.hdfs import DependencyHDFS
|
|
|
|
from tests.unit.dependency.test_local import TestDependencyLOCAL
|
|
|
|
|
|
@pytest.mark.skipif(
|
|
sys.version_info[0] == 2 and os.name == "nt",
|
|
reason="Not supported for python 2 on Windows.",
|
|
)
|
|
class TestDependencyHDFS(TestDependencyLOCAL):
|
|
def _get_cls(self):
|
|
return DependencyHDFS
|