mirror of
https://github.com/django/django.git
synced 2024-11-18 15:34:16 +00:00
14 lines
476 B
Python
14 lines
476 B
Python
|
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'))
|