Fixes mock in inbox create tests

This commit is contained in:
Mouse Reeve 2021-08-02 16:33:23 -07:00
parent 9e5536c7d5
commit 4a7da32f96

View file

@ -34,7 +34,10 @@ class InboxCreate(TestCase):
inbox="https://example.com/users/rat/inbox",
outbox="https://example.com/users/rat/outbox",
)
with patch("bookwyrm.activitystreams.ActivityStream.add_status"):
with patch(
"bookwyrm.activitystreams.ActivityStream.add_status",
"bookwyrm.models.activitypub_mixin.broadcast_task.delay"
):
self.status = models.Status.objects.create(
user=self.local_user,
content="Test status",