Skip to content

Commit edb2007

Browse files
committed
mock vhd util
Signed-off-by: Ronan Abhamon <ronan.abhamon@vates.tech>
1 parent 5fed402 commit edb2007

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_LVMSR.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def cmd(args):
275275
}
276276
}})
277277
with mock.patch('LVMSR.LVMMetadataHandler', autospec=True) as m, \
278-
mock.patch('vhdutil.VhdUtil', autotspec=True) as v:
278+
mock.patch('vhdutil.VhdUtil', autospec=True) as v:
279279
m.return_value.getMetadata.return_value = [
280280
None, self.convert_vdi_to_meta(extended_vdi_data)]
281281
v.return_value.getParentNoCheck.return_value = None

tests/test_blktap2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def from_uuid(_, sr_uuid):
180180
return sr
181181
self.mock_sr.from_uuid.side_effect = from_uuid
182182

183-
vhdutil_patcher = mock.patch("blktap2.vhdutil", autospec=True)
183+
vhdutil_patcher = mock.patch('vhdutil.VhdUtil', autospec=True)
184184
self.mock_vhdutil = vhdutil_patcher.start()
185185

186186
mkdir_patcher = mock.patch('blktap2.os.mkdir', autospec=True)

0 commit comments

Comments
 (0)