mirror of
https://github.com/django/django.git
synced 2025-08-30 23:37:50 +00:00
Fix test running with new apps stuff/migrate actually running migrations
This commit is contained in:
parent
9daf81b94e
commit
2ae8a8a77d
8 changed files with 33 additions and 12 deletions
|
@ -1,4 +1,5 @@
|
|||
from django.test import TransactionTestCase
|
||||
from django.test.utils import override_settings
|
||||
from django.db import connection
|
||||
from django.db.migrations.executor import MigrationExecutor
|
||||
|
||||
|
@ -11,6 +12,9 @@ class ExecutorTests(TransactionTestCase):
|
|||
test failures first, as they may be propagating into here.
|
||||
"""
|
||||
|
||||
available_apps = ["migrations"]
|
||||
|
||||
@override_settings(MIGRATION_MODULES={"migrations": "migrations.test_migrations"})
|
||||
def test_run(self):
|
||||
"""
|
||||
Tests running a simple set of migrations.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue