aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/pgp
diff options
context:
space:
mode:
authorJ08nY2017-07-26 22:31:40 +0200
committerJ08nY2017-07-26 22:31:40 +0200
commit800dd99fe45cf1ff2611fd115936d3113516d342 (patch)
tree99f0c1bf256bc13d0580816ce7dcc5a89e2a6224 /src/mailman_pgp/pgp
parent13055e265c738be43c0a4cb4c2898939cd0c1cd5 (diff)
downloadmailman-pgp-800dd99fe45cf1ff2611fd115936d3113516d342.tar.gz
mailman-pgp-800dd99fe45cf1ff2611fd115936d3113516d342.tar.zst
mailman-pgp-800dd99fe45cf1ff2611fd115936d3113516d342.zip
Add configurable lifetime of key change request.
Diffstat (limited to 'src/mailman_pgp/pgp')
-rw-r--r--src/mailman_pgp/pgp/tests/base.py3
-rw-r--r--src/mailman_pgp/pgp/tests/test_keygen.py3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/mailman_pgp/pgp/tests/base.py b/src/mailman_pgp/pgp/tests/base.py
index 52e5ec4..47d333c 100644
--- a/src/mailman_pgp/pgp/tests/base.py
+++ b/src/mailman_pgp/pgp/tests/base.py
@@ -25,6 +25,8 @@ from mailman.email.message import Message
from pgpy import PGPKey
from pkg_resources import resource_string
+from mailman_pgp.testing.layers import PGPLayer
+
def load_message(path):
data = resource_string('mailman_pgp.pgp.tests',
@@ -40,6 +42,7 @@ def load_key(path):
class WrapperTestCase(TestCase):
+ layer = PGPLayer
wrapper = None
def wrap(self, message):
diff --git a/src/mailman_pgp/pgp/tests/test_keygen.py b/src/mailman_pgp/pgp/tests/test_keygen.py
index f2f72a7..a3a5499 100644
--- a/src/mailman_pgp/pgp/tests/test_keygen.py
+++ b/src/mailman_pgp/pgp/tests/test_keygen.py
@@ -25,9 +25,12 @@ from pgpy import PGPKey
from pgpy.constants import EllipticCurveOID, PubKeyAlgorithm
from mailman_pgp.pgp.keygen import ListKeyGenerator
+from mailman_pgp.testing.layers import PGPLayer
class TestKeygen(TestCase):
+ layer = PGPLayer
+
def setUp(self):
self.display_name = 'Display Name'
self.posting_address = 'posting@address.com'