mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-29 03:20:32 +00:00
Mocks list create in test
This commit is contained in:
parent
f8ad1dfac4
commit
f94a3ec63b
1 changed files with 4 additions and 1 deletions
|
@ -131,7 +131,10 @@ class ShelfViews(TestCase):
|
|||
|
||||
def test_search_lists(self):
|
||||
"""searches remote connectors"""
|
||||
booklist = models.List.objects.create(user=self.local_user, name="test list")
|
||||
with patch("bookwyrm.models.activitypub_mixin.broadcast_task.delay"):
|
||||
booklist = models.List.objects.create(
|
||||
user=self.local_user, name="test list"
|
||||
)
|
||||
view = views.Search.as_view()
|
||||
request = self.factory.get("", {"q": "test", "type": "list"})
|
||||
request.user = self.local_user
|
||||
|
|
Loading…
Reference in a new issue