mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-18 15:41:12 +00:00
Mocks emailer in registration test
This commit is contained in:
parent
68e4462486
commit
026c6ac025
1 changed files with 2 additions and 1 deletions
|
@ -132,7 +132,8 @@ class AuthenticationViews(TestCase):
|
||||||
self.assertEqual(nutria.localname, "nutria-user.user_nutria")
|
self.assertEqual(nutria.localname, "nutria-user.user_nutria")
|
||||||
self.assertEqual(nutria.local, True)
|
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"""
|
"""create a user"""
|
||||||
self.settings.require_confirm_email = True
|
self.settings.require_confirm_email = True
|
||||||
self.settings.save()
|
self.settings.save()
|
||||||
|
|
Loading…
Reference in a new issue