Skip to content

Commit

Permalink
fixup! fixup! squash! Move code handling GPG keys to separate library
Browse files Browse the repository at this point in the history
  • Loading branch information
pirat89 committed Nov 10, 2023
1 parent 1724e92 commit a91d630
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a91d630

Please sign in to comment.