summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2017-01-11 23:13:01 -0500
committerSimon Charette <charette.s@gmail.com>2017-01-13 08:50:03 -0500
commit91023d79ec70df9289271e63a67675ee51e7dea8 (patch)
tree752010f795e58624c28e9faed065938b11d814cb
parentdc1193085da0c9a4d97f17e30f21695e53573472 (diff)
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.
-rw-r--r--tests/fixtures/tests.py1
-rw-r--r--tests/multiple_database/tests.py5
-rw-r--r--tests/swappable_models/tests.py6
3 files changed, 0 insertions, 12 deletions
diff --git a/tests/fixtures/tests.py b/tests/fixtures/tests.py
index 5c4fdd514a..ff85a9b752 100644
--- a/tests/fixtures/tests.py
+++ b/tests/fixtures/tests.py
@@ -689,7 +689,6 @@ class NonExistentFixtureTests(TestCase):
"""
Custom class to limit fixture dirs.
"""
- available_apps = ['django.contrib.auth', 'django.contrib.contenttypes']
def test_loaddata_not_existent_fixture_file(self):
stdout_output = six.StringIO()
diff --git a/tests/multiple_database/tests.py b/tests/multiple_database/tests.py
index 0a70b20dad..0ea3b6667e 100644
--- a/tests/multiple_database/tests.py
+++ b/tests/multiple_database/tests.py
@@ -1794,11 +1794,6 @@ class SyncOnlyDefaultDatabaseRouter(object):
class MigrateTestCase(TestCase):
- available_apps = [
- 'multiple_database',
- 'django.contrib.auth',
- 'django.contrib.contenttypes'
- ]
multi_db = True
def test_migrate_to_other_database(self):
diff --git a/tests/swappable_models/tests.py b/tests/swappable_models/tests.py
index a9a7751888..548c7b3286 100644
--- a/tests/swappable_models/tests.py
+++ b/tests/swappable_models/tests.py
@@ -11,12 +11,6 @@ from django.utils.six import StringIO
class SwappableModelTests(TestCase):
- 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"