mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Removed django.contrib.gis.geometry.backend.
The layer of indirection is unchanged and undocumented
since its introduction in ff60c5f9de.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
from django.contrib.gis.db.models import Collect, Count, Extent, F, Union
|
||||
from django.contrib.gis.geometry.backend import Geometry
|
||||
from django.contrib.gis.geos import GEOSGeometry, MultiPoint, Point
|
||||
from django.db import connection
|
||||
from django.test import TestCase, skipUnlessDBFeature
|
||||
@@ -177,8 +176,8 @@ class RelatedGeoModelTest(TestCase):
|
||||
for m, d, t in zip(gqs, gvqs, gvlqs):
|
||||
# The values should be Geometry objects and not raw strings returned
|
||||
# by the spatial database.
|
||||
self.assertIsInstance(d['point'], Geometry)
|
||||
self.assertIsInstance(t[1], Geometry)
|
||||
self.assertIsInstance(d['point'], GEOSGeometry)
|
||||
self.assertIsInstance(t[1], GEOSGeometry)
|
||||
self.assertEqual(m.point, d['point'])
|
||||
self.assertEqual(m.point, t[1])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user