diff options
Diffstat (limited to 'tests/gis_tests/gis_migrations/test_commands.py')
-rw-r--r-- | tests/gis_tests/gis_migrations/test_commands.py | 9 |
1 files changed, 4 insertions, 5 deletions
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) |