Loading django/contrib/gis/tests/gis_migrations/test_operations.py +2 −2 Original line number Diff line number Diff line Loading @@ -64,6 +64,7 @@ class OperationTests(TransactionTestCase): operation.state_forwards("gis", new_state) with connection.schema_editor() as editor: operation.database_forwards("gis", editor, project_state, new_state) self.current_state = new_state self.assertColumnExists("gis_neighborhood", "path") # Test GeometryColumns when available Loading @@ -72,7 +73,6 @@ class OperationTests(TransactionTestCase): GeometryColumns.objects.filter(**{GeometryColumns.table_name_col(): "gis_neighborhood"}).count(), 2 ) self.current_state = new_state def test_remove_gis_field(self): """ Loading @@ -84,6 +84,7 @@ class OperationTests(TransactionTestCase): operation.state_forwards("gis", new_state) with connection.schema_editor() as editor: operation.database_forwards("gis", editor, project_state, new_state) self.current_state = new_state self.assertColumnNotExists("gis_neighborhood", "geom") # Test GeometryColumns when available Loading @@ -92,4 +93,3 @@ class OperationTests(TransactionTestCase): GeometryColumns.objects.filter(**{GeometryColumns.table_name_col(): "gis_neighborhood"}).count(), 0 ) self.current_state = new_state Loading
django/contrib/gis/tests/gis_migrations/test_operations.py +2 −2 Original line number Diff line number Diff line Loading @@ -64,6 +64,7 @@ class OperationTests(TransactionTestCase): operation.state_forwards("gis", new_state) with connection.schema_editor() as editor: operation.database_forwards("gis", editor, project_state, new_state) self.current_state = new_state self.assertColumnExists("gis_neighborhood", "path") # Test GeometryColumns when available Loading @@ -72,7 +73,6 @@ class OperationTests(TransactionTestCase): GeometryColumns.objects.filter(**{GeometryColumns.table_name_col(): "gis_neighborhood"}).count(), 2 ) self.current_state = new_state def test_remove_gis_field(self): """ Loading @@ -84,6 +84,7 @@ class OperationTests(TransactionTestCase): operation.state_forwards("gis", new_state) with connection.schema_editor() as editor: operation.database_forwards("gis", editor, project_state, new_state) self.current_state = new_state self.assertColumnNotExists("gis_neighborhood", "geom") # Test GeometryColumns when available Loading @@ -92,4 +93,3 @@ class OperationTests(TransactionTestCase): GeometryColumns.objects.filter(**{GeometryColumns.table_name_col(): "gis_neighborhood"}).count(), 0 ) self.current_state = new_state