diff options
author | Tim Graham <timograham@gmail.com> | 2016-02-05 13:53:03 -0500 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2016-02-05 15:11:07 -0500 |
commit | 406675b1a03c0568f7768a73e7c279011e56054d (patch) | |
tree | 092da11ce8e2773a29576b2d937e188c7a46621d /tests/gis_tests/gis_migrations/test_commands.py | |
parent | 275314512d7dd10065026f02f61931e4c62c9cc8 (diff) | |
download | django-26176.tar.gz |
Fixed #26176 -- Fixed E123 flake8 warnings.26176
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) |