aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/styles/tests/test_base.py
diff options
context:
space:
mode:
authorJ08nY2017-08-21 21:12:31 +0200
committerJ08nY2017-08-21 21:12:31 +0200
commitc21e5e0e2841e1d516ffe75717b10c09ef3489ba (patch)
tree21773c460afda1b064013be6a12046deaf17fc62 /src/mailman_pgp/styles/tests/test_base.py
parent006e63dd02ae03e4e0d29405ba7b8c530a20fc9c (diff)
downloadmailman-pgp-c21e5e0e2841e1d516ffe75717b10c09ef3489ba.tar.gz
mailman-pgp-c21e5e0e2841e1d516ffe75717b10c09ef3489ba.tar.zst
mailman-pgp-c21e5e0e2841e1d516ffe75717b10c09ef3489ba.zip
Diffstat (limited to 'src/mailman_pgp/styles/tests/test_base.py')
-rw-r--r--src/mailman_pgp/styles/tests/test_base.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mailman_pgp/styles/tests/test_base.py b/src/mailman_pgp/styles/tests/test_base.py
index 6bb56f7..50d9981 100644
--- a/src/mailman_pgp/styles/tests/test_base.py
+++ b/src/mailman_pgp/styles/tests/test_base.py
@@ -18,9 +18,9 @@ from unittest import TestCase
from mailman.app.lifecycle import create_list
-from mailman_pgp.config import config
from mailman_pgp.model.list import PGPMailingList
from mailman_pgp.styles.base import PGPStyle
+from mailman_pgp.testing.config import patch_config
from mailman_pgp.testing.layers import PGPConfigLayer
@@ -44,10 +44,8 @@ class TestBaseStyle(TestCase):
# Test another apply doesn't fail
base_style.apply(mlist)
+ @patch_config('keypairs', 'autogenerate', 'no')
def test_autogenerate(self):
- self.addCleanup(config.set, 'keypairs', 'autogenerate', 'no')
- config.set('keypairs', 'autogenerate', 'yes')
-
# Create with default style.
mlist = create_list('test@example.com')
# Manually apply base PGPStyle.