mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-06-12 18:29:21 +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, *_):
|
def test_rss_shelf(self, *_):
|
||||||
"""load the rss feed of a shelf"""
|
"""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
|
# make the shelf
|
||||||
shelf = models.Shelf.objects.create(
|
shelf = models.Shelf.objects.create(
|
||||||
name="Test Shelf", identifier="test-shelf", user=self.local_user
|
name="Test Shelf", identifier="test-shelf", user=self.local_user
|
||||||
|
|
Loading…
Reference in a new issue