aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/styles/tests/test_base.py
diff options
context:
space:
mode:
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.