def test_alter_field_delete_field(self):
        self.assertOptimizesTo(
            [
                migrations.AlterField("Foo", "age", models.IntegerField()),
                migrations.RemoveField("Foo", "age"),
            ],
            [
                migrations.RemoveField("Foo", "age"),
            ],
        )
RemoveField should absorb AlterField
dataset/ETHPy150Open django/django/tests/migrations/test_optimizer.py/OptimizerTests.test_alter_field_delete_field