Mock activitystreams add_book_statuses_task

This commit is contained in:
mattkatz 2023-11-04 21:41:29 -04:00
parent f665aea665
commit 339298cb3d

View file

@ -130,7 +130,9 @@ class RssFeedView(TestCase):
def test_rss_shelf(self, *_):
"""load the rss feed of a shelf"""
with patch("bookwyrm.models.activitypub_mixin.broadcast_task.apply_async"):
with patch(
"bookwyrm.models.activitypub_mixin.broadcast_task.apply_async"
), patch("bookwyrm.activitystreams.add_book_statuses_task.delay"):
# make the shelf
shelf = models.Shelf.objects.create(
name="Test Shelf", identifier="test-shelf", user=self.local_user