mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
[1.11.x] Refs #27790 -- Reverted "Removed available_apps on TestCase subclasses."
This reverts commit91023d79ecas it increases memory usage for the test suite. Backport of7d50d2bcb8from master
This commit is contained in:
@@ -11,6 +11,13 @@ from django.utils.six import StringIO
|
||||
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user