From a91d63096393296a7cf902f079114d642b932734 Mon Sep 17 00:00:00 2001 From: Petr Stodulka Date: Fri, 10 Nov 2023 15:50:07 +0100 Subject: [PATCH] fixup! fixup! squash! Move code handling GPG keys to separate library --- .../tests/component_test_missinggpgkey.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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