summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2017-01-11 23:09:41 -0500
committerSimon Charette <charette.s@gmail.com>2017-01-13 08:50:03 -0500
commitdc1193085da0c9a4d97f17e30f21695e53573472 (patch)
treed7a63e89763c626219b6bdcaca887b377607c34a
parent973cfd2ef56664480d0e1b112da51793cdf85448 (diff)
Made contenttypes and auth apps unavailable when not necessary in tests.
-rw-r--r--tests/contenttypes_tests/tests.py1
-rw-r--r--tests/fixtures/tests.py2
-rw-r--r--tests/fixtures_regress/tests.py6
-rw-r--r--tests/migrations/test_operations.py6
4 files changed, 2 insertions, 13 deletions
diff --git a/tests/contenttypes_tests/tests.py b/tests/contenttypes_tests/tests.py
index db97557f24..95ec5e5e2b 100644
--- a/tests/contenttypes_tests/tests.py
+++ b/tests/contenttypes_tests/tests.py
@@ -480,7 +480,6 @@ class ContentTypeOperationsTests(TransactionTestCase):
available_apps = [
'contenttypes_tests',
'django.contrib.contenttypes',
- 'django.contrib.auth',
]
def setUp(self):
diff --git a/tests/fixtures/tests.py b/tests/fixtures/tests.py
index fcf9162345..5c4fdd514a 100644
--- a/tests/fixtures/tests.py
+++ b/tests/fixtures/tests.py
@@ -714,8 +714,6 @@ class FixtureTransactionTests(DumpDataAssertMixin, TransactionTestCase):
available_apps = [
'fixtures',
- 'django.contrib.contenttypes',
- 'django.contrib.auth',
'django.contrib.sites',
]
diff --git a/tests/fixtures_regress/tests.py b/tests/fixtures_regress/tests.py
index 42f410d753..657ea13b36 100644
--- a/tests/fixtures_regress/tests.py
+++ b/tests/fixtures_regress/tests.py
@@ -888,11 +888,7 @@ class M2MNaturalKeyFixtureTests(TestCase):
class TestTicket11101(TransactionTestCase):
- available_apps = [
- 'fixtures_regress',
- 'django.contrib.auth',
- 'django.contrib.contenttypes',
- ]
+ available_apps = ['fixtures_regress']
@skipUnlessDBFeature('supports_transactions')
def test_ticket_11101(self):
diff --git a/tests/migrations/test_operations.py b/tests/migrations/test_operations.py
index f929ecb3b2..e1daabe8b5 100644
--- a/tests/migrations/test_operations.py
+++ b/tests/migrations/test_operations.py
@@ -2344,11 +2344,7 @@ class SwappableOperationTests(OperationTestBase):
is in a common base class anyway)
"""
- available_apps = [
- "migrations",
- "django.contrib.auth",
- "django.contrib.contenttypes",
- ]
+ available_apps = ['migrations']
@override_settings(TEST_SWAP_MODEL="migrations.SomeFakeModel")
def test_create_ignore_swapped(self):