mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Refs #33476 -- Refactored problematic code before reformatting by Black.
In these cases Black produces unexpected results, e.g.
def make_random_password(
self,
length=10,
allowed_chars='abcdefghjkmnpqrstuvwxyz' 'ABCDEFGHJKLMNPQRSTUVWXYZ' '23456789',
):
or
cursor.execute("""
SELECT ...
""",
[table name],
)
This commit is contained in:
@@ -36,7 +36,7 @@ class I18nGetLanguageInfoTagTests(SimpleTestCase):
|
||||
output = self.engine.render_to_string('i18n38')
|
||||
self.assertEqual(output, 'de: German/Deutsch/německy bidi=False')
|
||||
|
||||
@setup({'template': '{% load i18n %}''{% get_language_info %}'})
|
||||
@setup({'template': '{% load i18n %}{% get_language_info %}'})
|
||||
def test_no_for_as(self):
|
||||
msg = "'get_language_info' requires 'for string as variable' (got [])"
|
||||
with self.assertRaisesMessage(TemplateSyntaxError, msg):
|
||||
|
||||
Reference in New Issue
Block a user