From ebf7ce8be49616b2c910e9c537abfdb49ad42640 Mon Sep 17 00:00:00 2001 From: Steffen Maier Date: Wed, 15 Nov 2023 14:00:16 +0100 Subject: [PATCH] unit_tests: drop DASDDevice.opts like in related blivet change https://github.com/storaged-project/blivet/pull/1162#issuecomment-1771443131 removes DASDDevice.opts. Anticipating that blivet change, update the anaconda unit tests making use of DASDDevice. Cherry-picked from master commit: 9e3cb46a24b5e82c26ee2053a112cc158ad102ff Signed-off-by: Steffen Maier --- .../pyanaconda_tests/modules/storage/test_module_dasd.py | 3 +-- .../modules/storage/test_module_device_tree.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/unit_tests/pyanaconda_tests/modules/storage/test_module_dasd.py b/tests/unit_tests/pyanaconda_tests/modules/storage/test_module_dasd.py index ed5c40ce9e9..92848b0f282 100644 --- a/tests/unit_tests/pyanaconda_tests/modules/storage/test_module_dasd.py +++ b/tests/unit_tests/pyanaconda_tests/modules/storage/test_module_dasd.py @@ -83,8 +83,7 @@ def test_find_formattable(self, blockdev): "dev1", fmt=get_format("ext4"), size=Size("10 GiB"), - busid="0.0.0201", - opts={} + busid="0.0.0201" ) ) diff --git a/tests/unit_tests/pyanaconda_tests/modules/storage/test_module_device_tree.py b/tests/unit_tests/pyanaconda_tests/modules/storage/test_module_device_tree.py index 36c81bd5269..c9cfff0480f 100644 --- a/tests/unit_tests/pyanaconda_tests/modules/storage/test_module_device_tree.py +++ b/tests/unit_tests/pyanaconda_tests/modules/storage/test_module_device_tree.py @@ -221,8 +221,7 @@ def test_get_dasd_device_data(self): "dev1", fmt=get_format("ext4"), size=Size("10 GiB"), - busid="0.0.0201", - opts={} + busid="0.0.0201" )) data = self.interface.GetDeviceData("dev1")