summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-09-19 12:21:43 -0400
committerTim Graham <timograham@gmail.com>2014-09-19 12:21:43 -0400
commitaa9c69a726d1dc3035a7518c90519b2cdf5475f6 (patch)
tree1bd46692c4e688aeacf9fa3c572e8e85df74d3cb
parente295b0f8757db9bca72c21c15e7db6003a96393d (diff)
[1.7.x] Fixed an inspectapp test on Oracle GIS.
This is fixed more elegantly with a feature flag on master in 33e817a6d8.
-rw-r--r--django/contrib/gis/tests/inspectapp/tests.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/django/contrib/gis/tests/inspectapp/tests.py b/django/contrib/gis/tests/inspectapp/tests.py
index b89cc2b944..cf9f0381c6 100644
--- a/django/contrib/gis/tests/inspectapp/tests.py
+++ b/django/contrib/gis/tests/inspectapp/tests.py
@@ -29,8 +29,12 @@ class InspectDbTests(TestCase):
table_name_filter=lambda tn: tn.startswith('inspectapp_'),
stdout=out)
output = out.getvalue()
- self.assertIn('geom = models.PolygonField()', output)
- self.assertIn('point = models.PointField()', output)
+ if not connections['default'].ops.oracle:
+ 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)