-
-
Notifications
You must be signed in to change notification settings - Fork 442
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
57 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2069,7 +2069,7 @@ def test_plugin_email_pgp(mock_smtp, mock_smtpssl, tmpdir): | |
obj = Apprise.instantiate('mailto://user:[email protected]?pgp=yes') | ||
|
||
# Nothing to lookup | ||
assert obj.pgp_pubkey is None | ||
assert obj.pgp_pubkey() is None | ||
assert obj.pgp_public_key() is None | ||
assert obj.pgp_encrypt_message("message") is False | ||
# Keys can not be generated in memory mode | ||
|
@@ -2090,15 +2090,15 @@ def test_plugin_email_pgp(mock_smtp, mock_smtpssl, tmpdir): | |
assert obj.store.mode == PersistentStoreMode.FLUSH | ||
|
||
# Still no public key | ||
assert obj.pgp_pubkey is None | ||
assert obj.pgp_pubkey() is None | ||
|
||
assert obj.pgp_generate_keys() is True | ||
# Now we'll have a public key | ||
assert isinstance(obj.pgp_pubkey, str) | ||
assert isinstance(obj.pgp_pubkey(), str) | ||
|
||
# Prepare PGP | ||
obj = Apprise.instantiate( | ||
f'mailto://pgp:[email protected]?pgp=yes&pgpkey={obj.pgp_pubkey}', | ||
'mailto://pgp:[email protected]?pgp=yes&pgpkey=%s' % obj.pgp_pubkey(), | ||
asset=asset) | ||
|
||
# We will find our key | ||
|