Skip to content

Commit

Permalink
tests: Fix expected value for "has_key" with latest blivet
Browse files Browse the repository at this point in the history
LUKS.has_key was changed to always return boolean in the latest
blivet (see storaged-project/blivet#1142)
so we need to change expected value here.
  • Loading branch information
vojtechtrefny committed Jul 19, 2023
1 parent dda9ace commit b2c7949
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
}

Expand Down Expand Up @@ -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'),
}

Expand Down

0 comments on commit b2c7949

Please sign in to comment.