mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-20 22:18:07 +00:00
Python formatting
This commit is contained in:
parent
4a695ce612
commit
63163ca0ff
1 changed files with 2 additions and 2 deletions
|
@ -346,7 +346,7 @@ class RegisterViews(TestCase):
|
||||||
self.assertEqual(result.status_code, 302)
|
self.assertEqual(result.status_code, 302)
|
||||||
|
|
||||||
def test_confirm_email_post(self, *_):
|
def test_confirm_email_post(self, *_):
|
||||||
""" send the email """
|
"""send the email"""
|
||||||
self.settings.require_confirm_email = True
|
self.settings.require_confirm_email = True
|
||||||
self.settings.save()
|
self.settings.save()
|
||||||
view = views.ConfirmEmail.as_view()
|
view = views.ConfirmEmail.as_view()
|
||||||
|
@ -360,7 +360,7 @@ class RegisterViews(TestCase):
|
||||||
validate_html(result.render())
|
validate_html(result.render())
|
||||||
|
|
||||||
def test_resend_link(self, *_):
|
def test_resend_link(self, *_):
|
||||||
""" try again """
|
"""try again"""
|
||||||
request = self.factory.post("", {"email": "mouse@mouse.com"})
|
request = self.factory.post("", {"email": "mouse@mouse.com"})
|
||||||
request.user = self.anonymous_user
|
request.user = self.anonymous_user
|
||||||
with patch("bookwyrm.emailing.send_email.delay") as mock:
|
with patch("bookwyrm.emailing.send_email.delay") as mock:
|
||||||
|
|
Loading…
Reference in a new issue