diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-03 11:20:46 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-03 11:38:46 +0100 |
| commit | d55a1e5809b424907528af42bfdfc2991ef11651 (patch) | |
| tree | 605247aa8b905c148d6e5f480da3f0d2a2eec586 /tests/postgres_tests/test_operations.py | |
| parent | 76c80d96f3828a5a3f66842932a5624674ba99a2 (diff) | |
[4.0.x] 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],
)
Backport of c5cd8783825b5f6384417dac5f3889b4210b7d08 from main.
Diffstat (limited to 'tests/postgres_tests/test_operations.py')
| -rw-r--r-- | tests/postgres_tests/test_operations.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/postgres_tests/test_operations.py b/tests/postgres_tests/test_operations.py index 1464f3177e..790fef8332 100644 --- a/tests/postgres_tests/test_operations.py +++ b/tests/postgres_tests/test_operations.py @@ -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) |
