mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 23:10:42 +01:00
* 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 ...
28 lines
473 B
Python
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
|