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,7 +306,8 @@ class BookViews(TestCase):
|
||||||
request = self.factory.post("", {"description": "new description hi"})
|
request = self.factory.post("", {"description": "new description hi"})
|
||||||
request.user = self.local_user
|
request.user = self.local_user
|
||||||
|
|
||||||
views.add_description(request, self.book.id)
|
with patch("bookwyrm.models.activitypub_mixin.broadcast_task.delay"):
|
||||||
|
views.add_description(request, self.book.id)
|
||||||
|
|
||||||
self.book.refresh_from_db()
|
self.book.refresh_from_db()
|
||||||
self.assertEqual(self.book.description, "new description hi")
|
self.assertEqual(self.book.description, "new description hi")
|
||||||
|
|
Loading…
Reference in a new issue