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