[gnome-keysign: 66/75] tests: mks: load public keys rather than private key
- From: Gitlab System User <gitlab src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keysign: 66/75] tests: mks: load public keys rather than private key
- Date: Fri, 29 Sep 2017 11:27:52 +0000 (UTC)
commit 7a2ef0f6bf4aef887b833290c435ef80c468dbbc
Author: Tobias Mueller <muelli cryptobitch de>
Date: Thu Sep 21 22:54:06 2017 +0200
tests: mks: load public keys rather than private key
For the test_sign_and_encrypt test we want to send a public key. So
let's get those instead of the private ones.
tests/test_gpgmks.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/test_gpgmks.py b/tests/test_gpgmks.py
index 8fd0243..1bb9f3a 100644
--- a/tests/test_gpgmks.py
+++ b/tests/test_gpgmks.py
@@ -249,7 +249,7 @@ class TestSignAndEncrypt:
def test_sign_and_encrypt(self):
keydata = open(self.sender_key, "rb").read()
- keys = get_usable_secret_keys(homedir=self.sender_homedir)
+ keys = get_usable_keys(homedir=self.sender_homedir)
assert_equals(1, len(keys))
key = keys[0]
uids = key.uidslist
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]