mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #29792 -- Made GeometryField.deconstruct() handle 'extent' and 'tolerance' args.
This commit is contained in:
@@ -27,10 +27,14 @@ class GeometryFieldTests(SimpleTestCase):
|
||||
srid=4067,
|
||||
dim=3,
|
||||
geography=True,
|
||||
extent=(50199.4814, 6582464.0358, -50000.0, 761274.6247, 7799839.8902, 50000.0),
|
||||
tolerance=0.01,
|
||||
)
|
||||
*_, kwargs = field.deconstruct()
|
||||
self.assertEqual(kwargs, {
|
||||
'srid': 4067,
|
||||
'dim': 3,
|
||||
'geography': True,
|
||||
'extent': (50199.4814, 6582464.0358, -50000.0, 761274.6247, 7799839.8902, 50000.0),
|
||||
'tolerance': 0.01,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user