diff --git a/repos/system_upgrade/common/actors/missinggpgkeysinhibitor/tests/component_test_missinggpgkey.py b/repos/system_upgrade/common/actors/missinggpgkeysinhibitor/tests/component_test_missinggpgkey.py index 2754cb5f27..6d3fa0b24a 100644 --- a/repos/system_upgrade/common/actors/missinggpgkeysinhibitor/tests/component_test_missinggpgkey.py +++ b/repos/system_upgrade/common/actors/missinggpgkeysinhibitor/tests/component_test_missinggpgkey.py @@ -555,8 +555,8 @@ def test_perform_invalid_key(monkeypatch): monkeypatch.setattr('leapp.libraries.common.gpg._gpg_show_keys', _gpg_show_keys_mocked_my_empty) process() - assert len(api.current_logger.warnmsg) == 1 - assert 'Cannot get any gpg key from the file' in api.current_logger.warnmsg[0] + assert len(api.current_logger.warnmsg) == 2, api.current_logger.warnmsg + assert 'Cannot get any gpg key from the file' in api.current_logger.warnmsg[1] assert api.produce.called == 1 assert isinstance(api.produce.model_instances[0], DNFWorkaround) assert reporting.create_report.called == 1