Another user mock on request

This commit is contained in:
Mouse Reeve 2021-09-27 12:38:49 -07:00
parent 1cb1b29f57
commit 8b0a8e2611

View file

@ -50,6 +50,7 @@ class PasswordViews(TestCase):
resp.render()
request = self.factory.post("", {"email": "mouse@mouse.com"})
request.user = self.anonymous_user
with patch("bookwyrm.emailing.send_email.delay"):
resp = view(request)
resp.render()