Mocks broadcast

This commit is contained in:
Mouse Reeve 2021-08-05 18:58:32 -07:00
parent 41742d6698
commit 48175023bc

View file

@ -306,6 +306,7 @@ class BookViews(TestCase):
request = self.factory.post("", {"description": "new description hi"})
request.user = self.local_user
with patch("bookwyrm.models.activitypub_mixin.broadcast_task.delay"):
views.add_description(request, self.book.id)
self.book.refresh_from_db()