Python formatting

This commit is contained in:
Mouse Reeve 2021-10-16 11:23:45 -07:00
parent 4a695ce612
commit 63163ca0ff

View file

@ -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: