From c5a2f1bd55631ce92ca3b536361fcd0bdaad5a79 Mon Sep 17 00:00:00 2001 From: Vojtech Trefny Date: Wed, 19 Jul 2023 12:00:09 +0200 Subject: [PATCH] tests: Fix expected value for "has_key" with latest blivet LUKS.has_key was changed to always return boolean in the latest blivet (see https://github.com/storaged-project/blivet/pull/1142) so we need to change expected value here. --- .../modules/storage/test_module_device_tree.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 b4c52849c39..a7981b1fdd0 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 @@ -305,7 +305,7 @@ def test_get_format_data(self): assert self.interface.GetFormatData("dev2") == { 'type': get_variant(Str, 'luks'), 'mountable': get_variant(Bool, False), - 'attrs': get_variant(Dict[Str, Str], {}), + 'attrs': get_variant(Dict[Str, Str], {'has_key': 'False'}), 'description': get_variant(Str, 'LUKS'), } @@ -682,7 +682,7 @@ def test_unlock_device(self, device_setup, device_teardown, format_setup): assert self.interface.GetFormatData("dev2") == { 'type': get_variant(Str, 'luks'), 'mountable': get_variant(Bool, False), - 'attrs': get_variant(Dict[Str, Str], { }), + 'attrs': get_variant(Dict[Str, Str], {'has_key': 'False'}), 'description': get_variant(Str, 'LUKS'), }