Bracket-wrap calls to patch()
for better readability
This commit is contained in:
parent
8cf52e0a77
commit
1b9e0546e6
123 changed files with 883 additions and 559 deletions
|
@ -18,8 +18,9 @@ class LinkViews(TestCase):
|
|||
@classmethod
|
||||
def setUpTestData(self): # pylint: disable=bad-classmethod-argument
|
||||
"""we need basic test data and mocks"""
|
||||
with patch("bookwyrm.suggested_users.rerank_suggestions_task.delay"), patch(
|
||||
"bookwyrm.activitystreams.populate_stream_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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue