1
0
Fork 0

Where you need one mock, you probably need the other

This commit is contained in:
Mouse Reeve 2021-09-06 14:48:45 -07:00
parent a6b0ba1826
commit bb94995389
65 changed files with 204 additions and 68 deletions

View file

@ -22,7 +22,9 @@ class ReadThrough(TestCase):
title="Example Edition", parent_work=self.work
)
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.user = models.User.objects.create_user(
"cinco", "cinco@example.com", "seissiete", local=True, localname="cinco"
)