Files
dvc/tests/remotes/local.py
T
Saugat Pachhai 047352027f pylint: enable attribute-outside-init check (#4119)
* pylint: enable attribute-outside-init check

* fix tests

* Fix mock for time

This was an interesting one. I was mocking `time` on function definition
and then, using those later on test run. When all the tests were run, there
would be some delay that'd make tests fail. Hmmm ...
2020-06-26 17:22:38 +03:00

28 lines
473 B
Python

# pylint: disable=cyclic-import
import pytest
from tests.basic_env import TestDvc
from .base import Base
class Local(Base):
@staticmethod
def get_storagepath():
return TestDvc.mkdtemp()
@staticmethod
def get_url():
return Local.get_storagepath()
@pytest.fixture
def local_cloud():
yield Local()
@pytest.fixture
def local_remote(tmp_dir, dvc, local_cloud):
tmp_dir.add_remote(config=local_cloud.config)
yield local_cloud