aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/rest
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/rest
parentbc548f544bd8ae4c46d72a684e822b3eaa6cfafd (diff)
downloadmailman-pgp-47eea2be6a86f81ba075df632305c1dfeecce50c.tar.gz
mailman-pgp-47eea2be6a86f81ba075df632305c1dfeecce50c.tar.zst
mailman-pgp-47eea2be6a86f81ba075df632305c1dfeecce50c.zip
Diffstat (limited to 'src/mailman_pgp/rest')
-rw-r--r--src/mailman_pgp/rest/tests/test_lists.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman_pgp/rest/tests/test_lists.py b/src/mailman_pgp/rest/tests/test_lists.py
index a7b1c2a..f5f8754 100644
--- a/src/mailman_pgp/rest/tests/test_lists.py
+++ b/src/mailman_pgp/rest/tests/test_lists.py
@@ -19,10 +19,10 @@ from unittest import TestCase
from urllib.error import HTTPError
from mailman.app.lifecycle import create_list
-from mailman.database.transaction import transaction as mailman_transaction
from mailman.testing.helpers import call_api
from pgpy import PGPKey
+from mailman_pgp.database import mm_transaction
from mailman_pgp.testing.layers import PGPRESTLayer
@@ -30,7 +30,7 @@ class TestLists(TestCase):
layer = PGPRESTLayer
def setUp(self):
- with mailman_transaction():
+ with mm_transaction():
self.mlist = create_list('test@example.com',
style_name='pgp-default')