Mocks emailer in registration test

This commit is contained in:
Mouse Reeve 2021-08-07 08:01:14 -07:00
parent 68e4462486
commit 026c6ac025

View file

@ -132,7 +132,8 @@ class AuthenticationViews(TestCase):
self.assertEqual(nutria.localname, "nutria-user.user_nutria")
self.assertEqual(nutria.local, True)
def test_register_email_confirm(self, _):
@patch("bookwyrm.emailing.send_email.delay")
def test_register_email_confirm(self, *_):
"""create a user"""
self.settings.require_confirm_email = True
self.settings.save()