1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +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 TestCase, TransactionTestCase
from django.test import TestCase
from django.test.utils import override_settings
from django.db import connection
from django.db.migrations.loader import MigrationLoader
from django.db.migrations.recorder import MigrationRecorder
@@ -30,12 +31,13 @@ class RecorderTests(TestCase):
)
class LoaderTests(TransactionTestCase):
class LoaderTests(TestCase):
"""
Tests the disk and database loader, and running through migrations
in memory.
"""
@override_settings(MIGRATION_MODULES={"migrations": "migrations.test_migrations"})
def test_load(self):
"""
Makes sure the loader can load the migrations for the test apps,