diff options
Diffstat (limited to 'tests/gis_tests')
-rw-r--r-- | tests/gis_tests/geoapp/test_functions.py | 2 | ||||
-rw-r--r-- | tests/gis_tests/gis_migrations/test_commands.py | 9 |
2 files changed, 5 insertions, 6 deletions
diff --git a/tests/gis_tests/geoapp/test_functions.py b/tests/gis_tests/geoapp/test_functions.py index 50649e2f52..aeb1007c56 100644 --- a/tests/gis_tests/geoapp/test_functions.py +++ b/tests/gis_tests/geoapp/test_functions.py @@ -89,7 +89,7 @@ class GISFunctionsTests(TestCase): chicago_json, City.objects.annotate( geojson=functions.AsGeoJSON('point', bbox=True, crs=True, precision=5) - ).get(name='Chicago').geojson + ).get(name='Chicago').geojson ) @skipUnlessDBFeature("has_AsGML_function") diff --git a/tests/gis_tests/gis_migrations/test_commands.py b/tests/gis_tests/gis_migrations/test_commands.py index 77bbdf3349..b9efc2c39c 100644 --- a/tests/gis_tests/gis_migrations/test_commands.py +++ b/tests/gis_tests/gis_migrations/test_commands.py @@ -56,10 +56,9 @@ class MigrateTests(TransactionTestCase): # Not all GIS backends have geometry columns model pass else: - self.assertEqual( - GeoColumn.objects.filter( - **{'%s__in' % GeoColumn.table_name_col(): ["gis_neighborhood", "gis_household"]} - ).count(), - 0) + qs = GeoColumn.objects.filter( + **{'%s__in' % GeoColumn.table_name_col(): ["gis_neighborhood", "gis_household"]} + ) + self.assertEqual(qs.count(), 0) # Revert the "unmigration" call_command("migrate", "gis_migrations", verbosity=0) |