Mocks list item remove test

This commit is contained in:
Mouse Reeve 2021-04-11 09:00:44 -07:00
parent 98ff66cd16
commit 6d76782ee1

View file

@ -369,7 +369,8 @@ class ListViews(TestCase):
)
request.user = self.local_user
views.list.remove_book(request, self.list.id)
with patch("bookwyrm.models.activitypub_mixin.broadcast_task.delay"):
views.list.remove_book(request, self.list.id)
self.assertFalse(self.list.listitem_set.exists())
def test_remove_book_unauthorized(self):