[1.11.x] Refs #27790 -- Reverted "Removed available_apps on TestCase subclasses."
This reverts commit91023d79ec
as it increases memory usage for the test suite. Backport of7d50d2bcb8
from master
This commit is contained in:
parent
f706576adf
commit
aa52e8b77b
|
@ -1794,6 +1794,12 @@ class SyncOnlyDefaultDatabaseRouter(object):
|
||||||
|
|
||||||
class MigrateTestCase(TestCase):
|
class MigrateTestCase(TestCase):
|
||||||
|
|
||||||
|
# Limit memory usage when calling 'migrate'.
|
||||||
|
available_apps = [
|
||||||
|
'multiple_database',
|
||||||
|
'django.contrib.auth',
|
||||||
|
'django.contrib.contenttypes'
|
||||||
|
]
|
||||||
multi_db = True
|
multi_db = True
|
||||||
|
|
||||||
def test_migrate_to_other_database(self):
|
def test_migrate_to_other_database(self):
|
||||||
|
|
|
@ -11,6 +11,13 @@ from django.utils.six import StringIO
|
||||||
|
|
||||||
class SwappableModelTests(TestCase):
|
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')
|
@override_settings(TEST_ARTICLE_MODEL='swappable_models.AlternateArticle')
|
||||||
def test_generated_data(self):
|
def test_generated_data(self):
|
||||||
"Permissions and content types are not created for a swapped model"
|
"Permissions and content types are not created for a swapped model"
|
||||||
|
|
Loading…
Reference in New Issue