-
-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix remaining instances of
bad-classmethod-argument
- Loading branch information
Showing
10 changed files
with
34 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,10 @@ class Quotation(TestCase): | |
"""we have hecka ways to create statuses""" | ||
|
||
@classmethod | ||
def setUpTestData(self): # pylint: disable=bad-classmethod-argument | ||
def setUpTestData(cls): | ||
"""model objects we'll need""" | ||
with patch("bookwyrm.models.user.set_remote_server.delay"): | ||
self.user = models.User.objects.create_user( | ||
cls.user = models.User.objects.create_user( | ||
"mouse", | ||
"[email protected]", | ||
"mouseword", | ||
|
@@ -23,7 +23,7 @@ def setUpTestData(self): # pylint: disable=bad-classmethod-argument | |
outbox="https://example.com/user/mouse/outbox", | ||
remote_id="https://example.com/user/mouse", | ||
) | ||
self.book = models.Edition.objects.create( | ||
cls.book = models.Edition.objects.create( | ||
title="Example Edition", | ||
remote_id="https://example.com/book/1", | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters