1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #27790 -- Reverted "Removed available_apps on TestCase subclasses."

This reverts commit 91023d79ec as it
increases memory usage for the test suite.
This commit is contained in:
Tim Graham
2017-01-27 20:06:55 -05:00
parent d5b573d872
commit 7d50d2bcb8
2 changed files with 13 additions and 0 deletions

View File

@@ -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"