mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Made multiline assertRaises* conform to flake8's E128 rule.
This commit is contained in:
@@ -111,8 +111,9 @@ class EarliestOrLatestTests(TestCase):
|
||||
Article.objects.model._meta.get_latest_by = None
|
||||
with self.assertRaisesMessage(
|
||||
AssertionError,
|
||||
"earliest() and latest() require either a field_name parameter or "
|
||||
"'get_latest_by' in the model"):
|
||||
"earliest() and latest() require either a field_name parameter or "
|
||||
"'get_latest_by' in the model"
|
||||
):
|
||||
Article.objects.latest()
|
||||
|
||||
def test_latest_manual(self):
|
||||
|
||||
Reference in New Issue
Block a user