|
@@ -10,6 +10,13 @@ from .models import Article
|
|
|
|
|
|
class SwappableModelTests(TestCase):
|
|
|
|
|
|
+ # Limit memory usage when calling 'migrate'.
|
|
|
+ available_apps = [
|
|
|
+ 'swappable_models',
|
|
|
+ 'django.contrib.auth',
|
|
|
+ 'django.contrib.contenttypes',
|
|
|
+ ]
|
|
|
+
|
|
|
@override_settings(TEST_ARTICLE_MODEL='swappable_models.AlternateArticle')
|
|
|
def test_generated_data(self):
|
|
|
"Permissions and content types are not created for a swapped model"
|