diff options
| author | J08nY | 2017-07-07 19:09:28 +0200 |
|---|---|---|
| committer | J08nY | 2017-07-07 19:09:28 +0200 |
| commit | 0724647197d26b221dc2b090c407a07401962a68 (patch) | |
| tree | 33a3c0b623590412b08858d58963320aaf691bfc /src/mailman_pgp | |
| parent | fd226c656b9f300681a826a7c9d759ece05f28d5 (diff) | |
| download | mailman-pgp-0724647197d26b221dc2b090c407a07401962a68.tar.gz mailman-pgp-0724647197d26b221dc2b090c407a07401962a68.tar.zst mailman-pgp-0724647197d26b221dc2b090c407a07401962a68.zip | |
Diffstat (limited to 'src/mailman_pgp')
| -rw-r--r-- | src/mailman_pgp/runners/tests/test_incoming.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mailman_pgp/runners/tests/test_incoming.py b/src/mailman_pgp/runners/tests/test_incoming.py index d06bb2b..0a37b05 100644 --- a/src/mailman_pgp/runners/tests/test_incoming.py +++ b/src/mailman_pgp/runners/tests/test_incoming.py @@ -82,7 +82,7 @@ To: ordinary@example.com create_list('no-key@example.com', style_name='pgp-default') msg = mfs("""\ -From: anne@example.com +From: RSA-1024b@example.org To: no-key@example.com Some text. @@ -90,10 +90,11 @@ Some text. wrapped = PGPWrapper(msg) encrypted = wrapped.encrypt(self.pgp_list.pubkey) - msgdata = dict(listid='no-key.example.com') mm_config.switchboards['in'].enqueue(encrypted, msgdata) - self.runner.run() + runner = make_testable_runner(IncomingRunner, 'in', + lambda runner: True) + runner.run() # Expect the message still there. Waiting for list key. get_queue_messages('in', expected_count=1) |
