mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-27 03:51:08 +00:00
Fixes mock in unit test
This commit is contained in:
parent
b8fc4f99a3
commit
4b53342fd2
1 changed files with 2 additions and 2 deletions
|
@ -135,8 +135,8 @@ class UserViews(TestCase):
|
|||
self.rat.blocks.add(self.local_user)
|
||||
with patch("bookwyrm.views.user.is_api_request") as is_api:
|
||||
is_api.return_value = False
|
||||
result = view(request, "rat")
|
||||
self.assertEqual(result.status_code, 404)
|
||||
with self.assertRaises(Http404):
|
||||
view(request, "rat")
|
||||
|
||||
def test_edit_user_page(self):
|
||||
"""there are so many views, this just makes sure it LOADS"""
|
||||
|
|
Loading…
Reference in a new issue