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/queries | |
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/queries')
-rw-r--r-- | tests/queries/tests.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/queries/tests.py b/tests/queries/tests.py index f146bc89fd..09aaad95a9 100644 --- a/tests/queries/tests.py +++ b/tests/queries/tests.py @@ -3149,8 +3149,7 @@ class QuerySetExceptionTests(SimpleTestCase): def test_invalid_order_by(self): msg = ( - "Cannot resolve keyword '*' into field. Choices are: created, id, " - "name" + "Cannot resolve keyword '*' into field. Choices are: created, id, name" ) with self.assertRaisesMessage(FieldError, msg): Article.objects.order_by('*') |