From 59ec076d04340245101de98633705d312374d9fe Mon Sep 17 00:00:00 2001 From: J08nY Date: Mon, 7 Aug 2017 00:50:19 +0200 Subject: Use the KeyRevokeWorkflow when the key needs to be reset. - Also make workflows work, deduplicate some stuff. --- src/mailman_pgp/commands/tests/test_key.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/mailman_pgp/commands/tests/test_key.py') diff --git a/src/mailman_pgp/commands/tests/test_key.py b/src/mailman_pgp/commands/tests/test_key.py index f6e4edf..1a128a1 100644 --- a/src/mailman_pgp/commands/tests/test_key.py +++ b/src/mailman_pgp/commands/tests/test_key.py @@ -987,8 +987,13 @@ class TestAfterSubscription(unittest.TestCase): mm_config.switchboards['command'].enqueue(message, listid='test.example.com') make_testable_runner(CommandRunner, 'command').run() - items = get_queue_messages('virgin', expected_count=1) - results_msg = items[0].msg + items = get_queue_messages('virgin', expected_count=2) + if (items[0].msg['Subject'] == + 'The results of your email commands'): # pragma: no cover + results_msg = items[0].msg + else: + results_msg = items[1].msg + #TODO: finish test self.assertIn('Key needs to be reset.', results_msg.get_payload()) -- cgit v1.2.3-70-g09d2