mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-27 12:01:14 +00:00
Another user mock on request
This commit is contained in:
parent
1cb1b29f57
commit
8b0a8e2611
1 changed files with 1 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue