1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Fix test running with new apps stuff/migrate actually running migrations

This commit is contained in:
Andrew Godwin
2013-06-19 15:36:02 +01:00
parent 9daf81b94e
commit 2ae8a8a77d
8 changed files with 33 additions and 12 deletions

View File

@@ -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.