mirror of
https://github.com/django/django.git
synced 2025-09-26 20:19:16 +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:
parent
c9d6e3595c
commit
c5cd878382
53 changed files with 227 additions and 217 deletions
|
@ -53,8 +53,7 @@ class AddIndexConcurrentlyTests(OperationTestBase):
|
|||
operation = AddIndexConcurrently('Pony', index)
|
||||
self.assertEqual(
|
||||
operation.describe(),
|
||||
'Concurrently create index pony_pink_idx on field(s) pink of '
|
||||
'model Pony'
|
||||
'Concurrently create index pony_pink_idx on field(s) pink of model Pony',
|
||||
)
|
||||
operation.state_forwards(self.app_label, new_state)
|
||||
self.assertEqual(len(new_state.models[self.app_label, 'pony'].options['indexes']), 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue