diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-03 11:20:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-03 11:20:46 +0100 |
commit | c5cd8783825b5f6384417dac5f3889b4210b7d08 (patch) | |
tree | 3d4689aaa0e209e40d2d8df09edad7e155960b45 /tests/bulk_create | |
parent | c9d6e3595cfd0aa58cde1656bd735ecfcd7a872b (diff) | |
download | django-c5cd8783825b5f6384417dac5f3889b4210b7d08.tar.gz |
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],
)
Diffstat (limited to 'tests/bulk_create')
-rw-r--r-- | tests/bulk_create/tests.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/bulk_create/tests.py b/tests/bulk_create/tests.py index 7e5ff32380..8040f16dcf 100644 --- a/tests/bulk_create/tests.py +++ b/tests/bulk_create/tests.py @@ -429,8 +429,7 @@ class BulkCreateTests(TestCase): ) def test_update_conflicts_invalid_update_fields(self): msg = ( - 'bulk_create() can only be used with concrete fields in ' - 'update_fields.' + 'bulk_create() can only be used with concrete fields in update_fields.' ) # Reverse one-to-one relationship. with self.assertRaisesMessage(ValueError, msg): @@ -467,8 +466,7 @@ class BulkCreateTests(TestCase): ) def test_update_conflicts_invalid_unique_fields(self): msg = ( - 'bulk_create() can only be used with concrete fields in ' - 'unique_fields.' + 'bulk_create() can only be used with concrete fields in unique_fields.' ) # Reverse one-to-one relationship. with self.assertRaisesMessage(ValueError, msg): |