Skip to content

Commit f5ced05

Browse files
committed
Fix failing tests related to FakeZFSSR
Signed-off-by: Antoine Bartuccio <antoine.bartuccio@vates.tech>
1 parent 18a6bdc commit f5ced05

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

tests/test_ZFSSR.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,17 @@
1414

1515

1616
class FakeZFSSR(ZFSSR.ZFSSR):
17-
uuid = None
18-
sr_ref = None
19-
session = None
20-
srcmd = None
21-
other_config = {}
22-
vdis = {}
23-
passthrough = True
24-
25-
def __init__(self, srcmd, none):
17+
18+
def __init__(self, srcmd, _):
2619
self.dconf = srcmd.dconf
2720
self.srcmd = srcmd
2821
self.uuid = str(uuid.uuid4())
22+
self.sr_ref = None
23+
self.session = None
24+
self.other_config = {}
25+
self.vdis = {}
26+
self.passthrough = True
27+
self.cmd = srcmd.params['command']
2928

3029

3130
class TestZFSSR(unittest.TestCase):

0 commit comments

Comments
 (0)