mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
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
This commit is contained in:
committed by
Mariusz Felisiak
parent
8c660fb592
commit
097e3a70c1
@@ -651,7 +651,7 @@ class GeoQuerySetTest(TestCase):
|
||||
self.assertEqual(len(line), ref_points.count())
|
||||
# Compare pairs of manually sorted points, as the default ordering is
|
||||
# flaky.
|
||||
for (point, ref_city) in zip(sorted(line), sorted(ref_points)):
|
||||
for point, ref_city in zip(sorted(line), sorted(ref_points)):
|
||||
point_x, point_y = point
|
||||
self.assertAlmostEqual(point_x, ref_city.x, 5),
|
||||
self.assertAlmostEqual(point_y, ref_city.y, 5),
|
||||
|
||||
@@ -1292,6 +1292,7 @@ class GEOSTest(SimpleTestCase, TestDataMixin):
|
||||
|
||||
def test_pickle(self):
|
||||
"Testing pickling and unpickling support."
|
||||
|
||||
# Creating a list of test geometries for pickling,
|
||||
# and setting the SRID on some of them.
|
||||
def get_geoms(lst, srid=None):
|
||||
|
||||
@@ -2,7 +2,6 @@ from django.contrib.gis.db import models
|
||||
|
||||
|
||||
class AllOGRFields(models.Model):
|
||||
|
||||
f_decimal = models.FloatField()
|
||||
f_float = models.FloatField()
|
||||
f_int = models.IntegerField()
|
||||
|
||||
@@ -233,6 +233,7 @@ class LayerMapTest(TestCase):
|
||||
|
||||
def test_test_fid_range_step(self):
|
||||
"Tests the `fid_range` keyword and the `step` keyword of .save()."
|
||||
|
||||
# Function for clearing out all the counties before testing.
|
||||
def clear_counties():
|
||||
County.objects.all().delete()
|
||||
|
||||
@@ -4,7 +4,6 @@ from django.db.models import deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("rasterapp", "0001_setup_extensions"),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user