forked from mirrors/bookwyrm
Fixes mock in test
This commit is contained in:
parent
87deac17f9
commit
b64a616ff9
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ class ShelfViews(TestCase):
|
|||
shelf = self.local_user.shelf_set.first()
|
||||
request = self.factory.get("")
|
||||
request.user = self.local_user
|
||||
with patch("bookwyrm.views.shelf.is_api_request") as is_api:
|
||||
with patch("bookwyrm.views.shelf.shelf.is_api_request") as is_api:
|
||||
is_api.return_value = False
|
||||
result = view(request, self.local_user.username, shelf.identifier)
|
||||
self.assertIsInstance(result, TemplateResponse)
|
||||
|
|
Loading…
Reference in a new issue