Commit 26f5383d authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

Update astakos tests

handle new email recipients
parent 7c3e721f
......@@ -530,7 +530,9 @@ class TestLocal(TestCase):
form = forms.LocalUserCreationForm(data)
@with_settings(settings, HELPDESK=(('support',''),))
def test_local_provider(self):
self.helpdesk_email = astakos_settings.HELPDESK[0][1]
# enable moderation
astakos_settings.MODERATION_ENABLED = True
......@@ -553,7 +555,8 @@ class TestLocal(TestCase):
self.assertFalse(user.activation_sent) # activation automatically sent
# admin gets notified and activates the user from the command line
self.assertEqual(len(get_mailbox('')), 1)
self.assertEqual(len(get_mailbox(self.helpdesk_email)), 1)
r ='/im/local', {'username': '',
'password': 'password'})
self.assertContains(r, messages.NOTIFICATION_SENT)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment