Skip to content

Commit 9d3308d

Browse files
fix(test_LVHDSR): mock getBlockSize
Signed-off-by: Mathieu Labourier <[email protected]>
1 parent 4c866c7 commit 9d3308d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test_LVHDSR.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ def setUp(self):
307307
self.mock_lvhdutil.LV_PREFIX = lvhdutil.LV_PREFIX
308308
vhdutil_patcher = mock.patch('sm.drivers.LVHDSR.vhdutil', autospec=True)
309309
self.mock_vhdutil = vhdutil_patcher.start()
310+
self.mock_vhdutil.getBlockSize.return_value = vhdutil.DEFAULT_VHD_BLOCK_SIZE
310311
self.mock_vhdutil.VDI_TYPE_VHD = vhdutil.VDI_TYPE_VHD
311312
self.mock_vhdutil.VDI_TYPE_RAW = vhdutil.VDI_TYPE_RAW
312313
self.mock_vhdutil.MAX_CHAIN_SIZE = vhdutil.MAX_CHAIN_SIZE

0 commit comments

Comments
 (0)