forked from mirrors/bookwyrm
Fixes mock in inbox create tests
This commit is contained in:
parent
9e5536c7d5
commit
4a7da32f96
1 changed files with 4 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue