mirror of
				https://github.com/django/django.git
				synced 2025-10-30 17:16:10 +00:00 
			
		
		
		
	[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:
		| @@ -29,8 +29,12 @@ class InspectDbTests(TestCase): | ||||
|                  table_name_filter=lambda tn: tn.startswith('inspectapp_'), | ||||
|                  stdout=out) | ||||
|         output = out.getvalue() | ||||
|         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) | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user