1
0
mirror of https://github.com/django/django.git synced 2025-10-25 06:36:07 +00:00

[1.7.x] Added database migration for contrib.contenttypes.

Moved contenttypes tests to allow them to run correctly in the presence of
migrations. refs #22170.

Backport of eb8600a656 from master
This commit is contained in:
Tim Graham
2014-06-16 13:28:03 -04:00
parent 02860e779c
commit a0bf14a2ac
8 changed files with 85 additions and 42 deletions

View File

@@ -77,7 +77,7 @@ class LoaderTests(TestCase):
)
# Ensure we've included unmigrated apps in there too
self.assertIn("contenttypes", project_state.real_apps)
self.assertIn("auth", project_state.real_apps)
@override_settings(MIGRATION_MODULES={"migrations": "migrations.test_migrations_unmigdep"})
def test_load_unmigrated_dependency(self):