Files
dvc/tests/unit/output/test_hdfs.py
T
Saugat Pachhai 5faae2a6e9 test: allow selectively running tests for remotes (#4920)
Some of the tests are run by default, other requires
`--enable-{remote}` to run. The remotes that are run by default
also have a `--disable-{remote}` flag. All of the remotes can be
enabled using `--all` flag.

To use this functionality in the fixture,
`test_config` fixture has to be used, and requires to call
`test_config.requires(remote)`.
In an individual test, you can simply use `pytest.mark.remote`
to make them skip or run.
2020-11-23 11:43:39 +05:45

13 lines
322 B
Python

import pytest
from dvc.output.hdfs import HDFSOutput
from tests import PY39, PYARROW_NOT_AVAILABLE
from tests.unit.output.test_local import TestLocalOutput
@pytest.mark.skipif(PY39, reason=PYARROW_NOT_AVAILABLE)
@pytest.mark.hdfs
class TestHDFSOutput(TestLocalOutput):
def _get_cls(self):
return HDFSOutput