[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:
Tim Graham 2014-09-19 12:21:43 -04:00
parent e295b0f875
commit aa9c69a726
1 changed files with 6 additions and 2 deletions

View File

@ -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()
self.assertIn('geom = models.PolygonField()', output) if not connections['default'].ops.oracle:
self.assertIn('point = models.PointField()', output) self.assertIn('geom = models.PolygonField()', 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)