Skip to content
Snippets Groups Projects
Commit 654094cf authored by Antoine Beaupré's avatar Antoine Beaupré
Browse files

replace deprecated always-trust with trust-model=always

parent 1293e2ab
Branches
Tags
No related merge requests found
......@@ -415,7 +415,7 @@ mailto: who to send the mail to (usually similar to recipient, but can be used t
# this is necessary because we reimport keys from outside our
# keyring, so gpg doesn't trust them anymore
# but we know we do, so we ignore the trustdb
self.tmpkeyring.context.set_option('always-trust')
self.tmpkeyring.context.set_option('trust-model', 'always')
# remove UIDs we don't want to send
self.cleanup_uids()
# cleanup email addresses
......
......@@ -254,7 +254,7 @@ class TestKeyringWithKeys(TestKeyringBase):
plaintext = 'i come in peace'
# we trust all keys blindly to avoid having to set trust on that key
self.gpg.context.set_option('always-trust')
self.gpg.context.set_option('trust-model', 'always')
self.gpg.context.set_option('armor')
cyphertext = self.gpg.encrypt_data(plaintext, '96F47C6A')
self.assertTrue(cyphertext)
......@@ -307,7 +307,7 @@ class TestKeyringWithKeys(TestKeyringBase):
keys = self.gpg.get_keys('7B75921E')
todelete = []
# XXX: otherwise test fails with GpgProtocolError: [Errno 0] expected "^\[GNUPG:\] GET_LINE keyedit.prompt", found "gpg: vérification de la base de confiance"
self.gpg.context.set_option('always-trust')
self.gpg.context.set_option('trust-model', 'always')
for fpr, key in keys.iteritems():
for u, uid in key.uids.iteritems():
if userid != uid.uid:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment