Files
dvc/tests/remotes/base.py
T
Ruslan Kuprieiev 51a8c782ae tests: create remote fixtures (#4063)
* tests: use remote fixtures

* tests: use remote fixtures for data cloud tests

* tests: treat remotes as tmp dirs
2020-06-18 01:36:13 +03:00

24 lines
409 B
Python

from funcy import cached_property
class Base:
@staticmethod
def should_test():
return True
@staticmethod
def get_storagepath():
raise NotImplementedError
@staticmethod
def get_url():
raise NotImplementedError
@cached_property
def url(self):
return self.get_url()
@cached_property
def config(self):
return {"url": self.url}