summaryrefslogtreecommitdiff
path: root/tests/swappable_models
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-01-27 20:06:55 -0500
committerTim Graham <timograham@gmail.com>2017-01-28 10:01:13 -0500
commit7d50d2bcb8a3cf3fea727174717ead7e6508e9e2 (patch)
tree9fa7f02475d979d011df3aa7db5a88870f9ed726 /tests/swappable_models
parentd5b573d872bbe0d5825efaee2d41cb3cdc75417b (diff)
downloaddjango-7d50d2bcb8a3cf3fea727174717ead7e6508e9e2.tar.gz
Refs #27790 -- Reverted "Removed available_apps on TestCase subclasses."
This reverts commit 91023d79ec70df9289271e63a67675ee51e7dea8 as it increases memory usage for the test suite.
Diffstat (limited to 'tests/swappable_models')
-rw-r--r--tests/swappable_models/tests.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/swappable_models/tests.py b/tests/swappable_models/tests.py
index e9d15db015..bdf681dd87 100644
--- a/tests/swappable_models/tests.py
+++ b/tests/swappable_models/tests.py
@@ -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"