diff options
| author | Tim Graham <timograham@gmail.com> | 2014-09-19 12:21:43 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-09-19 12:21:43 -0400 |
| commit | aa9c69a726d1dc3035a7518c90519b2cdf5475f6 (patch) | |
| tree | 1bd46692c4e688aeacf9fa3c572e8e85df74d3cb | |
| parent | e295b0f8757db9bca72c21c15e7db6003a96393d (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.py | 8 |
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) |
