mirror of
https://github.com/django/django.git
synced 2025-10-28 16:16:12 +00:00
[4.2.x] Refs #33476 -- Applied Black's 2023 stable style.
Black 23.1.0 is released which, as the first release of the year,
introduces the 2023 stable style. This incorporates most of last year's
preview style.
https://github.com/psf/black/releases/tag/23.1.0
Backport of 097e3a70c1 from main
This commit is contained in:
committed by
Mariusz Felisiak
parent
8a7b22d4a6
commit
80aae83439
@@ -449,7 +449,7 @@ def serializerTest(self, format):
|
||||
# Create all the objects defined in the test data
|
||||
objects = []
|
||||
instance_count = {}
|
||||
for (func, pk, klass, datum) in test_data:
|
||||
for func, pk, klass, datum in test_data:
|
||||
with connection.constraint_checks_disabled():
|
||||
objects.extend(func[0](pk, klass, datum))
|
||||
|
||||
@@ -468,7 +468,7 @@ def serializerTest(self, format):
|
||||
|
||||
# Assert that the deserialized data is the same
|
||||
# as the original source
|
||||
for (func, pk, klass, datum) in test_data:
|
||||
for func, pk, klass, datum in test_data:
|
||||
func[1](self, pk, klass, datum)
|
||||
|
||||
# Assert that the number of objects deserialized is the
|
||||
|
||||
Reference in New Issue
Block a user