diff options
| author | Tim Graham <timograham@gmail.com> | 2015-08-10 08:03:08 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-08-10 10:29:36 -0400 |
| commit | b27547f9d1c3d3e0e0bd466cc841f966a42e67cd (patch) | |
| tree | c176c11b34866388f6884a4679b6ff1ef8b3972d /tests | |
| parent | f2e4c7aca48374cd18f7e3bea333bbb5d73154cf (diff) | |
Removed deprecated GeoManager from inspectdb/ogrinspect output.
refs ea27e26b0907e74ab8d6c46a9694775a310fdc67
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/gis_tests/inspectapp/tests.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/gis_tests/inspectapp/tests.py b/tests/gis_tests/inspectapp/tests.py index 6525e995ca..c272b65aa8 100644 --- a/tests/gis_tests/inspectapp/tests.py +++ b/tests/gis_tests/inspectapp/tests.py @@ -40,7 +40,6 @@ class InspectDbTests(TestCase): else: self.assertIn('geom = models.GeometryField(', output) self.assertIn('point = models.GeometryField(', output) - self.assertIn('objects = models.GeoManager()', output) @skipUnlessDBFeature("supports_3d_storage") def test_3d_columns(self): @@ -59,7 +58,6 @@ class InspectDbTests(TestCase): self.assertIn('point = models.GeometryField(', output) self.assertIn('line = models.GeometryField(', output) self.assertIn('poly = models.GeometryField(', output) - self.assertIn('objects = models.GeoManager()', output) @skipUnless(HAS_GDAL, "OGRInspectTest needs GDAL support") @@ -82,7 +80,6 @@ class OGRInspectTest(TestCase): ' int = models.{}()'.format('BigIntegerField' if GDAL_VERSION >= (2, 0) else 'FloatField'), ' str = models.CharField(max_length=80)', ' geom = models.PolygonField(srid=-1)', - ' objects = models.GeoManager()', ] self.assertEqual(model_def, '\n'.join(expected)) @@ -110,7 +107,6 @@ class OGRInspectTest(TestCase): ' density = models.FloatField()', ' created = models.DateField()', ' geom = models.PointField(srid=-1)', - ' objects = models.GeoManager()', ] self.assertEqual(model_def, '\n'.join(expected)) @@ -147,9 +143,8 @@ class OGRInspectTest(TestCase): self.assertIn(' f_char = models.CharField(max_length=10)', model_def) self.assertIn(' f_date = models.DateField()', model_def) - self.assertIsNotNone(re.search( - r' geom = models.PolygonField\(([^\)])*\)\n' # Some backends may have srid=-1 - r' objects = models.GeoManager\(\)', model_def)) + # Some backends may have srid=-1 + self.assertIsNotNone(re.search(r' geom = models.PolygonField\(([^\)])*\)', model_def)) def test_management_command(self): shp_file = os.path.join(TEST_DATA, 'cities', 'cities.shp') |
