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
|
@ -38,9 +38,11 @@ class Signature(TestCase):
|
|||
@classmethod
|
||||
def setUpTestData(self): # pylint: disable=bad-classmethod-argument
|
||||
"""create users and test data"""
|
||||
with patch("bookwyrm.suggested_users.rerank_suggestions_task.delay"), patch(
|
||||
"bookwyrm.activitystreams.populate_stream_task.delay"
|
||||
), patch("bookwyrm.lists_stream.populate_lists_task.delay"):
|
||||
with (
|
||||
patch("bookwyrm.suggested_users.rerank_suggestions_task.delay"),
|
||||
patch("bookwyrm.activitystreams.populate_stream_task.delay"),
|
||||
patch("bookwyrm.lists_stream.populate_lists_task.delay"),
|
||||
):
|
||||
self.mouse = models.User.objects.create_user(
|
||||
f"mouse@{DOMAIN}",
|
||||
"mouse@example.com",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue