mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Refs #33476 -- Refactored code to strictly match 88 characters line length.
This commit is contained in:
@@ -809,7 +809,10 @@ class ModelRefreshTests(TestCase):
|
||||
|
||||
def test_lookup_in_fields(self):
|
||||
s = SelfRef.objects.create()
|
||||
msg = 'Found "__" in fields argument. Relations and transforms are not allowed in fields.'
|
||||
msg = (
|
||||
'Found "__" in fields argument. Relations and transforms are not allowed '
|
||||
"in fields."
|
||||
)
|
||||
with self.assertRaisesMessage(ValueError, msg):
|
||||
s.refresh_from_db(fields=["foo__bar"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user