From f94a3ec63b4b953887890cb6ad502cba6c057bc7 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sat, 1 May 2021 18:05:21 -0700 Subject: [PATCH] Mocks list create in test --- bookwyrm/tests/views/test_search.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bookwyrm/tests/views/test_search.py b/bookwyrm/tests/views/test_search.py index 7661d5a6..f1de918d 100644 --- a/bookwyrm/tests/views/test_search.py +++ b/bookwyrm/tests/views/test_search.py @@ -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