diff options
| author | J08nY | 2017-07-05 01:07:37 +0200 |
|---|---|---|
| committer | J08nY | 2017-08-07 18:18:00 +0200 |
| commit | 6c621405c88671a58ef24cd84a9bd74ca324207e (patch) | |
| tree | 80f516f151951fb4803b040adfb3aad79995c45d /src/mailman/app/tests/test_moderation.py | |
| parent | 26f31b20c3cad6217f38ce8ded63c73da66ff3f8 (diff) | |
| download | mailman-6c621405c88671a58ef24cd84a9bd74ca324207e.tar.gz mailman-6c621405c88671a58ef24cd84a9bd74ca324207e.tar.zst mailman-6c621405c88671a58ef24cd84a9bd74ca324207e.zip | |
Migrate the [un]subscription_policy attribute.
- This is quite a huge commit, since it changes the type of the
MailingList.subscription_policy and unsubscription_policy
attributes to the new names of pluggable workflows, in all
occurences.
- Also adds a migration to migrate the attributes to the new types.
- Adds tests for the migration.
Diffstat (limited to 'src/mailman/app/tests/test_moderation.py')
| -rw-r--r-- | src/mailman/app/tests/test_moderation.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mailman/app/tests/test_moderation.py b/src/mailman/app/tests/test_moderation.py index 5448a1d79..7d7524a10 100644 --- a/src/mailman/app/tests/test_moderation.py +++ b/src/mailman/app/tests/test_moderation.py @@ -162,7 +162,7 @@ class TestUnsubscription(unittest.TestCase): user_manager = getUtility(IUserManager) anne = user_manager.create_address('anne@example.org', 'Anne Person') token, token_owner, member = self._manager.register( - anne, pre_verified=True, pre_confirmed=True, pre_approved=True) + anne, pre_verified=True, pre_confirmed=True) self.assertIsNone(token) self.assertEqual(member.address.email, 'anne@example.org') bart = user_manager.create_user('bart@example.com', 'Bart User') |
