aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/rules
diff options
context:
space:
mode:
authorJ08nY2017-06-28 16:48:02 +0200
committerJ08nY2017-06-28 16:48:02 +0200
commit47eea2be6a86f81ba075df632305c1dfeecce50c (patch)
tree737dbbfe7f4b1902ee0c8ebfc5f61e23ecfe70ee /src/mailman_pgp/rules
parentbc548f544bd8ae4c46d72a684e822b3eaa6cfafd (diff)
downloadmailman-pgp-47eea2be6a86f81ba075df632305c1dfeecce50c.tar.gz
mailman-pgp-47eea2be6a86f81ba075df632305c1dfeecce50c.tar.zst
mailman-pgp-47eea2be6a86f81ba075df632305c1dfeecce50c.zip
Add ListStyle tests.
Diffstat (limited to 'src/mailman_pgp/rules')
-rw-r--r--src/mailman_pgp/rules/tests/test_signature.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mailman_pgp/rules/tests/test_signature.py b/src/mailman_pgp/rules/tests/test_signature.py
index 86141a9..084f599 100644
--- a/src/mailman_pgp/rules/tests/test_signature.py
+++ b/src/mailman_pgp/rules/tests/test_signature.py
@@ -18,9 +18,9 @@ from unittest import TestCase
from mailman.app.lifecycle import create_list
from mailman.config import config
-from mailman.database.transaction import transaction as mailman_transaction
from mailman.testing.helpers import specialized_message_from_string as mfs
+from mailman_pgp.database import mm_transaction
from mailman_pgp.rules.signature import Signature
from mailman_pgp.testing.layers import PGPConfigLayer
@@ -29,7 +29,7 @@ class TestSignature(TestCase):
layer = PGPConfigLayer
def setUp(self):
- with mailman_transaction():
+ with mm_transaction():
self.mlist = create_list('nobody@example.com',
style_name='pgp-default')
@@ -37,7 +37,8 @@ class TestSignature(TestCase):
self.assertIn(Signature.name, config.rules.keys())
def test_no_pgp_list(self):
- ordinary_list = create_list('ordinary@example.com')
+ with mm_transaction():
+ ordinary_list = create_list('ordinary@example.com')
msg = mfs("""\
From: anne@example.com
To: ordinary@example.com