summaryrefslogtreecommitdiff
path: root/src/mailman/app/tests/test_subscriptions.py
diff options
context:
space:
mode:
authorBarry Warsaw2016-09-11 19:51:21 +1200
committerBarry Warsaw2016-09-11 19:51:21 +1200
commite18e7ac34e8b4b2f88d5987ccb76a39c54c61c0c (patch)
treed313d43b1bf35342d4baa3711bb2745dbce82282 /src/mailman/app/tests/test_subscriptions.py
parent1db20c856fa192664d09f93caa1045036b4336dd (diff)
downloadmailman-e18e7ac34e8b4b2f88d5987ccb76a39c54c61c0c.tar.gz
mailman-e18e7ac34e8b4b2f88d5987ccb76a39c54c61c0c.tar.zst
mailman-e18e7ac34e8b4b2f88d5987ccb76a39c54c61c0c.zip
Fix more tests.
Diffstat (limited to 'src/mailman/app/tests/test_subscriptions.py')
-rw-r--r--src/mailman/app/tests/test_subscriptions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/app/tests/test_subscriptions.py b/src/mailman/app/tests/test_subscriptions.py
index 6a3a1aa77..42b60b552 100644
--- a/src/mailman/app/tests/test_subscriptions.py
+++ b/src/mailman/app/tests/test_subscriptions.py
@@ -286,7 +286,7 @@ class TestSubscriptionWorkflow(unittest.TestCase):
def test_moderation_checks_approval_required(self):
# The moderator must approve the subscription.
self._mlist.subscription_policy = SubscriptionPolicy.moderate
- anne = self._user_manager.create_address(self._anne)
+ anne = self._user_manager.create_address(self._anne, pre_verified=True)
workflow = SubscriptionWorkflow(self._mlist, anne)
workflow.run_thru('moderation_checks')
with patch.object(workflow, '_step_get_moderator_approval') as step:
@@ -299,7 +299,7 @@ class TestSubscriptionWorkflow(unittest.TestCase):
# confirmations or approvals.
self._mlist.subscription_policy = SubscriptionPolicy.open
anne = self._user_manager.create_address(self._anne)
- workflow = SubscriptionWorkflow(self._mlist, anne)
+ workflow = SubscriptionWorkflow(self._mlist, anne, pre_verified=True)
# Consume the entire state machine.
list(workflow)
# Anne is now a member of the mailing list.