Merge pull request #1254 from bookwyrm-social/activitystreams-celery

Move activitystreams updates to tasks
This commit is contained in:
Mouse Reeve
2021-09-06 21:33:01 -07:00
committed by GitHub
67 changed files with 583 additions and 390 deletions

View File

@ -16,7 +16,9 @@ class ListActionViews(TestCase):
def setUp(self):
"""we need basic test data and mocks"""
self.factory = RequestFactory()
with patch("bookwyrm.suggested_users.rerank_suggestions_task.delay"):
with patch("bookwyrm.suggested_users.rerank_suggestions_task.delay"), patch(
"bookwyrm.activitystreams.populate_stream_task.delay"
):
self.local_user = models.User.objects.create_user(
"mouse@local.com",
"mouse@mouse.com",