mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-06 15:28:28 +01:00
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.
13 lines
322 B
Python
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
|