From d3eba5cea6dc4c4597693afda39b643b72995cbf Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Fri, 4 Nov 2016 10:00:19 +0100 Subject: Run the workflows at the end of the tests to clean things up --- src/mailman/app/tests/test_subscriptions.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/mailman/app/tests/test_subscriptions.py b/src/mailman/app/tests/test_subscriptions.py index 31c34b802..b960b7904 100644 --- a/src/mailman/app/tests/test_subscriptions.py +++ b/src/mailman/app/tests/test_subscriptions.py @@ -682,6 +682,7 @@ approval: self._mlist.subscription_policy = SubscriptionPolicy.moderate anne = self._user_manager.create_user(self._anne) bill = self._user_manager.create_user('bill@example.com') + set_preferred(bill) # anne subscribes. workflow = SubscriptionWorkflow(self._mlist, anne, pre_verified=True) list(workflow) @@ -692,6 +693,8 @@ approval: approved_workflow.token = workflow.token approved_workflow.restore() self.assertEqual(approved_workflow.user, bill) + # Run the workflow through. + list(approved_workflow) def test_restore_address_absorbed(self): # The subscribing user is absorbed (and thus deleted) before the @@ -712,3 +715,5 @@ approval: approved_workflow.token = workflow.token approved_workflow.restore() self.assertEqual(approved_workflow.user, bill) + # Run the workflow through. + list(approved_workflow) -- cgit v1.3.1