aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/runners
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman_pgp/runners')
-rw-r--r--src/mailman_pgp/runners/incoming.py2
-rw-r--r--src/mailman_pgp/runners/tests/test_incoming.py8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/mailman_pgp/runners/incoming.py b/src/mailman_pgp/runners/incoming.py
index 1c81908..acb079d 100644
--- a/src/mailman_pgp/runners/incoming.py
+++ b/src/mailman_pgp/runners/incoming.py
@@ -41,7 +41,7 @@ def _pass_default(msg, msgdata, listid):
@public
-class IncomingRunner(Runner):
+class PGPIncomingRunner(Runner):
def _dispose(self, mlist: MailingList, msg: Message, msgdata: dict):
"""See `IRunner`."""
# Is the message for an encrypted mailing list? If not, pass to default
diff --git a/src/mailman_pgp/runners/tests/test_incoming.py b/src/mailman_pgp/runners/tests/test_incoming.py
index ce03a32..be82c61 100644
--- a/src/mailman_pgp/runners/tests/test_incoming.py
+++ b/src/mailman_pgp/runners/tests/test_incoming.py
@@ -31,11 +31,11 @@ from mailman_pgp.model.address import PGPAddress
from mailman_pgp.model.list import PGPMailingList
from mailman_pgp.pgp.tests.base import load_key, load_message
from mailman_pgp.pgp.wrapper import PGPWrapper
-from mailman_pgp.runners.incoming import IncomingRunner
+from mailman_pgp.runners.incoming import PGPIncomingRunner
from mailman_pgp.testing.layers import PGPConfigLayer
-class TestIncoming(TestCase):
+class TestPGPIncomingRunner(TestCase):
layer = PGPConfigLayer
def setUp(self):
@@ -59,7 +59,7 @@ class TestIncoming(TestCase):
self.msg_clear = load_message('clear.eml')
- self.runner = make_testable_runner(IncomingRunner, 'in')
+ self.runner = make_testable_runner(PGPIncomingRunner, 'in')
def test_pass_default(self):
with mm_transaction():
@@ -92,7 +92,7 @@ Some text.
msgdata = dict(listid='no-key.example.com')
mm_config.switchboards['in'].enqueue(encrypted, msgdata)
- runner = make_testable_runner(IncomingRunner, 'in',
+ runner = make_testable_runner(PGPIncomingRunner, 'in',
lambda runner: True)
runner.run()
# Expect the message still there. Waiting for list key.