[1.7.x] Fixed an inspectapp test on Oracle GIS.
This is fixed more elegantly with a feature flag on master in 33e817a6d8
.
This commit is contained in:
parent
e295b0f875
commit
aa9c69a726
|
@ -29,8 +29,12 @@ class InspectDbTests(TestCase):
|
||||||
table_name_filter=lambda tn: tn.startswith('inspectapp_'),
|
table_name_filter=lambda tn: tn.startswith('inspectapp_'),
|
||||||
stdout=out)
|
stdout=out)
|
||||||
output = out.getvalue()
|
output = out.getvalue()
|
||||||
|
if not connections['default'].ops.oracle:
|
||||||
self.assertIn('geom = models.PolygonField()', output)
|
self.assertIn('geom = models.PolygonField()', output)
|
||||||
self.assertIn('point = models.PointField()', output)
|
self.assertIn('point = models.PointField()', output)
|
||||||
|
else:
|
||||||
|
self.assertIn('geom = models.GeometryField(', output)
|
||||||
|
self.assertIn('point = models.GeometryField(', output)
|
||||||
self.assertIn('objects = models.GeoManager()', output)
|
self.assertIn('objects = models.GeoManager()', output)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue