mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-23 17:26:46 +00:00
test(backups): make dummy service more compliant
This commit is contained in:
parent
de1cbcb1ca
commit
53638b7e06
|
@ -42,7 +42,7 @@ class DummyService(Service):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_url() -> typing.Optional[str]:
|
def get_url() -> typing.Optional[str]:
|
||||||
"""Return service url."""
|
"""Return service url."""
|
||||||
domain = get_domain()
|
domain = "test.com"
|
||||||
return f"https://password.{domain}"
|
return f"https://password.{domain}"
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
@ -68,7 +68,7 @@ class DummyService(Service):
|
||||||
Return code 3 means service is stopped.
|
Return code 3 means service is stopped.
|
||||||
Return code 4 means service is off.
|
Return code 4 means service is off.
|
||||||
"""
|
"""
|
||||||
return 0
|
return ServiceStatus.ACTIVE
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def enable():
|
def enable():
|
||||||
|
|
Loading…
Reference in a new issue