Where you need one mock, you probably need the other
This commit is contained in:
parent
a6b0ba1826
commit
bb94995389
65 changed files with 204 additions and 68 deletions
|
@ -37,7 +37,9 @@ class Signature(TestCase):
|
|||
|
||||
def setUp(self):
|
||||
"""create users and test data"""
|
||||
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.mouse = models.User.objects.create_user(
|
||||
"mouse@%s" % DOMAIN,
|
||||
"mouse@example.com",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue