summaryrefslogtreecommitdiff
path: root/tests/migrations/test_questioner.py
blob: d5ba18a6840242b8ce3cc9c6fa1192ebef48d0bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from __future__ import unicode_literals

from django.db.migrations.questioner import MigrationQuestioner
from django.test import SimpleTestCase
from django.test.utils import override_settings


class QuestionerTests(SimpleTestCase):
    @override_settings(
        INSTALLED_APPS=['migrations'],
        MIGRATION_MODULES={'migrations': None},
    )
    def test_ask_initial_with_disabled_migrations(self):
        questioner = MigrationQuestioner()
        self.assertIs(False, questioner.ask_initial('migrations'))