mirror of
https://github.com/django/django.git
synced 2025-11-01 20:31:40 +00:00
Refs #25304 -- Added assertion for Command.requires_migrations_checks default.
This commit is contained in:
parent
b17a9150a0
commit
1ac7fdcd13
1 changed files with 1 additions and 0 deletions
|
|
@ -165,6 +165,7 @@ class CommandTests(SimpleTestCase):
|
|||
|
||||
def test_check_migrations(self):
|
||||
requires_migrations_checks = dance.Command.requires_migrations_checks
|
||||
self.assertEqual(requires_migrations_checks, False)
|
||||
try:
|
||||
with mock.patch.object(BaseCommand, 'check_migrations') as check_migrations:
|
||||
management.call_command('dance', verbosity=0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue