From 220e68bdfc011b9eac6b0b36bad39b27fc01a753 Mon Sep 17 00:00:00 2001 From: Isis Lovecruft Date: Fri, 28 Jun 2013 07:27:57 +0000 Subject: [PATCH] Change unittest for separate keyrings to add extra --keyring option for now. * At some point, as mentioned in an earlier commit, we should actually make some sort of helper function for adding extra keyring, so that their keys can be used/imported/exported/whatever the user wants to do with them, without changing the normal main keyrings. --- tests/test_gnupg.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_gnupg.py b/tests/test_gnupg.py index d7e351e..a3b65a2 100644 --- a/tests/test_gnupg.py +++ b/tests/test_gnupg.py @@ -788,10 +788,14 @@ authentication.""" 'subkey_usage': 'encrypt,sign', 'passphrase': 'overalls' } + extra_keyrings = [] + ian_input = self.gpg.gen_key_input(separate_keyring=True, **ian) log.info("Key stored in separate keyring: %s" % self.gpg.temp_keyring) ian_key = self.gpg.gen_key(ian_input) ian_fpr = str(ian_key.fingerprint) + extra_keyrings.append('--keyring %s' % ian_key.pubring) + self.gpg.options = extra_keyrings kat_input = self.gpg.gen_key_input(separate_keyring=True, **kat) log.info("Key stored in separate keyring: %s" % self.gpg.temp_keyring)