Removed available_apps on TestCase subclasses.
TestCase subclasses are wrapped in a transaction that prevents any data from being persisted between test runs andi thus don't require limiting the tables to be flushed to a subset of available apps like TransactionTestCase subclasses do.
This commit is contained in:
parent
dc1193085d
commit
91023d79ec
|
@ -689,7 +689,6 @@ class NonExistentFixtureTests(TestCase):
|
||||||
"""
|
"""
|
||||||
Custom class to limit fixture dirs.
|
Custom class to limit fixture dirs.
|
||||||
"""
|
"""
|
||||||
available_apps = ['django.contrib.auth', 'django.contrib.contenttypes']
|
|
||||||
|
|
||||||
def test_loaddata_not_existent_fixture_file(self):
|
def test_loaddata_not_existent_fixture_file(self):
|
||||||
stdout_output = six.StringIO()
|
stdout_output = six.StringIO()
|
||||||
|
|
|
@ -1794,11 +1794,6 @@ class SyncOnlyDefaultDatabaseRouter(object):
|
||||||
|
|
||||||
class MigrateTestCase(TestCase):
|
class MigrateTestCase(TestCase):
|
||||||
|
|
||||||
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,12 +11,6 @@ from django.utils.six import StringIO
|
||||||
|
|
||||||
class SwappableModelTests(TestCase):
|
class SwappableModelTests(TestCase):
|
||||||
|
|
||||||
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