mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-18 14:16:45 +00:00
Mocks broadcast
This commit is contained in:
parent
41742d6698
commit
48175023bc
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue