mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-27 12:01:14 +00:00
Fixes search tests
This commit is contained in:
parent
3e3b21c46a
commit
c7914d1394
1 changed files with 2 additions and 0 deletions
|
@ -83,6 +83,7 @@ class ShelfViews(TestCase):
|
|||
)
|
||||
|
||||
request = self.factory.get('', {'q': 'Test Book'})
|
||||
request.user = self.local_user
|
||||
with patch('bookwyrm.views.search.is_api_request') as is_api:
|
||||
is_api.return_value = False
|
||||
with patch(
|
||||
|
@ -99,6 +100,7 @@ class ShelfViews(TestCase):
|
|||
''' searches remote connectors '''
|
||||
view = views.Search.as_view()
|
||||
request = self.factory.get('', {'q': 'mouse'})
|
||||
request.user = self.local_user
|
||||
with patch('bookwyrm.views.search.is_api_request') as is_api:
|
||||
is_api.return_value = False
|
||||
with patch('bookwyrm.connectors.connector_manager.search'):
|
||||
|
|
Loading…
Reference in a new issue