mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-09 15:28:26 +01:00
* tests: use remote fixtures * tests: use remote fixtures for data cloud tests * tests: treat remotes as tmp dirs
27 lines
441 B
Python
27 lines
441 B
Python
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
|