1
0
Fork 0

Bracket-wrap calls to patch() for better readability

This commit is contained in:
Adeodato Simó 2024-03-17 19:46:30 -03:00
parent 8cf52e0a77
commit 1b9e0546e6
123 changed files with 883 additions and 559 deletions

View file

@ -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",