Add ability to deliver cleartext when keys can't be loaded #135

Merged
pfm merged 3 commits from fix/keys-not-loaded into main 2023-12-10 21:41:49 +01:00
1 changed files with 0 additions and 4 deletions
Showing only changes of commit 23a05c11ac - Show all commits

View File

@ -65,10 +65,6 @@ class GnuPGUtilitiesTest(unittest.TestCase):
uid = GnuPG._parse_uid_line(sample_in)
self.assertEqual(uid, 'alice@disposlab')
def test_exception_formatting(self):
e = GnuPG.EncryptionException('alice@disposlab', 'key expired', None, b'DEADBEEF')
self.assertEqual(str(e), 'To: alice@disposlab; Issue: key expired; Key: DEADBEEF')
def test_parse_statusfd_key_expired(self):
key_expired = b"""
[GNUPG:] KEYEXPIRED 1668272263