@@ -18,21 +18,22 @@ def test_bootloader_in_kickstart(self):
in the kickstart data
'''
- with patch('blivet.blivet.Blivet.bootloader_device',
new_callable=PropertyMock) as mock_bootloader_device:
- with patch('blivet.blivet.Blivet.mountpoints',
new_callable=PropertyMock) as mock_mountpoints:
+ with patch('blivet.osinstall.InstallerStorage.bootloader_device',
new_callable=PropertyMock) as mock_bootloader_device:
+ with patch('blivet.osinstall.InstallerStorage.mountpoints',
new_callable=PropertyMock) as mock_mountpoints:
# set up prepboot partition
bootloader_device_obj =
PartitionDevice("test_partition_device")
bootloader_device_obj.size = Size('5 MiB')
bootloader_device_obj.format = formats.get_format("prepboot")
- blivet_obj = Blivet()
+ blivet_obj = InstallerStorage()
# mountpoints must exist for update_ksdata to run
mock_bootloader_device.return_value = bootloader_device_obj
mock_mountpoints.values.return_value = []
# initialize ksdata
test_ksdata = returnClassForVersion()()
+
Same here.
--
To view this pull request on github, visit
https://github.com/rhinstaller/blivet/pull/433#discussion_r66049099