diff options
| author | J08nY | 2017-07-18 19:14:23 +0200 |
|---|---|---|
| committer | J08nY | 2017-07-18 19:14:23 +0200 |
| commit | 7a751f15069338887643b0cd3f22c143c605780a (patch) | |
| tree | abdce09e66307447f2689ec0cfdc23515e45e0ab | |
| parent | b988b47192eb8ccda1a2713e6488a4207a61c239 (diff) | |
| download | mailman-pgp-7a751f15069338887643b0cd3f22c143c605780a.tar.gz mailman-pgp-7a751f15069338887643b0cd3f22c143c605780a.tar.zst mailman-pgp-7a751f15069338887643b0cd3f22c143c605780a.zip | |
| -rw-r--r-- | src/mailman_pgp/config/mailman.cfg | 2 | ||||
| -rw-r--r-- | src/mailman_pgp/rules/tests/test_encryption.py | 2 | ||||
| -rw-r--r-- | src/mailman_pgp/rules/tests/test_signature.py | 2 | ||||
| -rw-r--r-- | src/mailman_pgp/runners/incoming.py | 2 | ||||
| -rw-r--r-- | src/mailman_pgp/runners/tests/test_incoming.py | 8 |
5 files changed, 8 insertions, 8 deletions
diff --git a/src/mailman_pgp/config/mailman.cfg b/src/mailman_pgp/config/mailman.cfg index 5a53a70..bf470b0 100644 --- a/src/mailman_pgp/config/mailman.cfg +++ b/src/mailman_pgp/config/mailman.cfg @@ -24,7 +24,7 @@ enable: yes configuration: python:mailman_pgp.config.mailman_pgp [runner.in] -class: mailman_pgp.runners.incoming.IncomingRunner +class: mailman_pgp.runners.incoming.PGPIncomingRunner [runner.in_default] class: mailman.runners.incoming.IncomingRunner diff --git a/src/mailman_pgp/rules/tests/test_encryption.py b/src/mailman_pgp/rules/tests/test_encryption.py index 276a9f3..eaa4898 100644 --- a/src/mailman_pgp/rules/tests/test_encryption.py +++ b/src/mailman_pgp/rules/tests/test_encryption.py @@ -25,7 +25,7 @@ from mailman_pgp.rules.encryption import Encryption from mailman_pgp.testing.layers import PGPConfigLayer -class TestEncryptionRule(TestCase): +class TestPGPEncryptionRule(TestCase): layer = PGPConfigLayer def setUp(self): diff --git a/src/mailman_pgp/rules/tests/test_signature.py b/src/mailman_pgp/rules/tests/test_signature.py index d8d0537..58af694 100644 --- a/src/mailman_pgp/rules/tests/test_signature.py +++ b/src/mailman_pgp/rules/tests/test_signature.py @@ -36,7 +36,7 @@ from mailman_pgp.testing.layers import PGPConfigLayer from mailman_pgp.utils.pgp import hashes -class TestSignatureRule(TestCase): +class TestPGPSignatureRule(TestCase): layer = PGPConfigLayer def setUp(self): 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. |
