'makemigrations adds and removes a possible model rename in
non-interactive mode.'

def test_makemigrations_non_interactive_no_model_rename(self):

    class RenamedModel(models.Model, ):
        silly_field = models.BooleanField(default=False)
        class Meta:
            app_label = 'migrations'
    out = io.StringIO()
    with self.temporary_migration_module(module='migrations.test_migrations_no_default'):
        call_command('makemigrations', 'migrations', interactive=False, stdout=out)
    self.assertIn('Delete    model    SillyModel', out.getvalue())
    self.assertIn('Create    model    RenamedModel', out.getvalue())
