mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #33476 -- Refactored code to strictly match 88 characters line length.
This commit is contained in:
@@ -247,7 +247,10 @@ class DateFunctionTests(TestCase):
|
||||
with self.assertRaisesMessage(ValueError, "lookup_name must be provided"):
|
||||
Extract("start_datetime")
|
||||
|
||||
msg = "Extract input expression must be DateField, DateTimeField, TimeField, or DurationField."
|
||||
msg = (
|
||||
"Extract input expression must be DateField, DateTimeField, TimeField, or "
|
||||
"DurationField."
|
||||
)
|
||||
with self.assertRaisesMessage(ValueError, msg):
|
||||
list(DTModel.objects.annotate(extracted=Extract("name", "hour")))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user