mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-09 07:18:27 +01:00
20 lines
329 B
Python
20 lines
329 B
Python
from funcy import cached_property
|
|
|
|
|
|
class Base:
|
|
@staticmethod
|
|
def should_test():
|
|
return True
|
|
|
|
@staticmethod
|
|
def get_url():
|
|
raise NotImplementedError
|
|
|
|
@cached_property
|
|
def url(self):
|
|
return self.get_url()
|
|
|
|
@cached_property
|
|
def config(self):
|
|
return {"url": self.url}
|