'makemigrations raises a nice error when migrations are disabled for an
app.'

@override_settings(MIGRATION_MODULES={'migrations': None})
def test_makemigrations_disabled_migrations_for_app(self):

    msg = "Django    can't    create    migrations    for    app    'migrations'    because    migrations    have    been    disabled    via    the    MIGRATION_MODULES    setting."
    with self.assertRaisesMessage(ValueError, msg):
        call_command('makemigrations', 'migrations', empty=True, verbosity=0)
