diff options
| author | J08nY | 2017-08-06 02:30:57 +0200 |
|---|---|---|
| committer | J08nY | 2017-08-06 02:30:57 +0200 |
| commit | b56debf2d3db0732e6fa4a3d22ecaaae78fc5b65 (patch) | |
| tree | 0fc2ae11bf353d0da9f52f7d7c3dc5100936a51a /src/mailman_pgp/workflows/tests/test_mod_approval.py | |
| parent | 66f1510d1a38c10944a13665e1b7f9ecb14a8d8f (diff) | |
| download | mailman-pgp-b56debf2d3db0732e6fa4a3d22ecaaae78fc5b65.tar.gz mailman-pgp-b56debf2d3db0732e6fa4a3d22ecaaae78fc5b65.tar.zst mailman-pgp-b56debf2d3db0732e6fa4a3d22ecaaae78fc5b65.zip | |
Diffstat (limited to 'src/mailman_pgp/workflows/tests/test_mod_approval.py')
| -rw-r--r-- | src/mailman_pgp/workflows/tests/test_mod_approval.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/mailman_pgp/workflows/tests/test_mod_approval.py b/src/mailman_pgp/workflows/tests/test_mod_approval.py index 49e4204..7d57a9b 100644 --- a/src/mailman_pgp/workflows/tests/test_mod_approval.py +++ b/src/mailman_pgp/workflows/tests/test_mod_approval.py @@ -33,14 +33,23 @@ from mailman_pgp.pgp.wrapper import PGPWrapper from mailman_pgp.testing.layers import PGPConfigLayer from mailman_pgp.testing.pgp import load_key from mailman_pgp.workflows.key_change import KeyChangeBase -from mailman_pgp.workflows.mod_approval import ModeratorApprovalMixin +from mailman_pgp.workflows.mod_approval import ( + ModeratorKeyChangeApprovalMixin) @implementer(IWorkflow) -class PGPTestWorkflow(KeyChangeBase, ModeratorApprovalMixin): +class PGPTestWorkflow(KeyChangeBase, ModeratorKeyChangeApprovalMixin): name = 'test-workflow' description = '' initial_state = 'mod_approval' + save_attributes = ( + 'approved', + ) + + def __init__(self, mlist, pgp_address=None, pubkey=None, + pre_approved=False): + KeyChangeBase.__init__(self, mlist, pgp_address, pubkey) + ModeratorKeyChangeApprovalMixin.__init__(self, pre_approved) class TestModeratorApprovalMixin(TestCase): |
