mirror of
https://github.com/django/django.git
synced 2025-10-25 06:36:07 +00:00
Refs #25304 -- Added assertion for Command.requires_migrations_checks default.
This commit is contained in:
@@ -165,6 +165,7 @@ class CommandTests(SimpleTestCase):
|
|||||||
|
|
||||||
def test_check_migrations(self):
|
def test_check_migrations(self):
|
||||||
requires_migrations_checks = dance.Command.requires_migrations_checks
|
requires_migrations_checks = dance.Command.requires_migrations_checks
|
||||||
|
self.assertEqual(requires_migrations_checks, False)
|
||||||
try:
|
try:
|
||||||
with mock.patch.object(BaseCommand, 'check_migrations') as check_migrations:
|
with mock.patch.object(BaseCommand, 'check_migrations') as check_migrations:
|
||||||
management.call_command('dance', verbosity=0)
|
management.call_command('dance', verbosity=0)
|
||||||
|
|||||||
Reference in New Issue
Block a user