From 70428902c0c4d7660118b935241b54c17f662802 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Thu, 23 Oct 2014 15:37:19 +0200 Subject: [PATCH] Added missing available app in migrations test case In some test combinations, having contrib.auth available but not contrib.contenttypes can produce failures while creating permissions. --- tests/migrations/test_operations.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/migrations/test_operations.py b/tests/migrations/test_operations.py index ce524fa9ee..5aee55fe02 100644 --- a/tests/migrations/test_operations.py +++ b/tests/migrations/test_operations.py @@ -1512,6 +1512,7 @@ class SwappableOperationTests(OperationTestBase): available_apps = [ "migrations", "django.contrib.auth", + "django.contrib.contenttypes", ] @override_settings(TEST_SWAP_MODEL="migrations.SomeFakeModel")