Updates static paths in tests

This commit is contained in:
Mouse Reeve
2021-09-28 12:02:09 -07:00
parent c5d7c7dbff
commit 6266b58650
2 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ class ChangePasswordViews(TestCase):
password_hash = self.local_user.password
request = self.factory.post("", {"password": "hi", "confirm-password": "hi"})
request.user = self.local_user
with patch("bookwyrm.views.password.login"):
with patch("bookwyrm.views.preferences.change_password.login"):
view(request)
self.assertNotEqual(self.local_user.password, password_hash)