mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-26 02:36:36 +00:00
fix mock BlockDevicesMockReturnTrue
This commit is contained in:
parent
da92d6f835
commit
8821ec834b
|
@ -17,16 +17,13 @@ class BlockDevicesMockReturnNone:
|
||||||
returncode = 0
|
returncode = 0
|
||||||
|
|
||||||
|
|
||||||
class BlockDevicesMock:
|
class BlockDevicesMockReturnTrue:
|
||||||
"""Mock BlockDevices"""
|
"""Mock BlockDevices"""
|
||||||
|
|
||||||
def __init__(self, args, **kwargs):
|
def __init__(self, args, **kwargs):
|
||||||
self.args = args
|
self.args = args
|
||||||
self.kwargs = kwargs
|
self.kwargs = kwargs
|
||||||
|
|
||||||
def get_block_device(self, name: str):
|
|
||||||
return 0
|
|
||||||
|
|
||||||
def mount(self):
|
def mount(self):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue