mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-05-20 09:18:19 +00:00
Mock activitystreams add_book_statuses_task
This commit is contained in:
parent
f665aea665
commit
339298cb3d
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue