From 4a7da32f9614b81c18c512ebc6cfae1e1f92ce09 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 2 Aug 2021 16:33:23 -0700 Subject: [PATCH] Fixes mock in inbox create tests --- bookwyrm/tests/views/inbox/test_inbox_create.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bookwyrm/tests/views/inbox/test_inbox_create.py b/bookwyrm/tests/views/inbox/test_inbox_create.py index 95a5ffe3..03054fc0 100644 --- a/bookwyrm/tests/views/inbox/test_inbox_create.py +++ b/bookwyrm/tests/views/inbox/test_inbox_create.py @@ -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",