mirror of https://github.com/django/django.git
Made contenttypes and auth apps unavailable when not necessary in tests.
This commit is contained in:
parent
973cfd2ef5
commit
dc1193085d
|
@ -480,7 +480,6 @@ class ContentTypeOperationsTests(TransactionTestCase):
|
||||||
available_apps = [
|
available_apps = [
|
||||||
'contenttypes_tests',
|
'contenttypes_tests',
|
||||||
'django.contrib.contenttypes',
|
'django.contrib.contenttypes',
|
||||||
'django.contrib.auth',
|
|
||||||
]
|
]
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
|
|
|
@ -714,8 +714,6 @@ class FixtureTransactionTests(DumpDataAssertMixin, TransactionTestCase):
|
||||||
|
|
||||||
available_apps = [
|
available_apps = [
|
||||||
'fixtures',
|
'fixtures',
|
||||||
'django.contrib.contenttypes',
|
|
||||||
'django.contrib.auth',
|
|
||||||
'django.contrib.sites',
|
'django.contrib.sites',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -888,11 +888,7 @@ class M2MNaturalKeyFixtureTests(TestCase):
|
||||||
|
|
||||||
class TestTicket11101(TransactionTestCase):
|
class TestTicket11101(TransactionTestCase):
|
||||||
|
|
||||||
available_apps = [
|
available_apps = ['fixtures_regress']
|
||||||
'fixtures_regress',
|
|
||||||
'django.contrib.auth',
|
|
||||||
'django.contrib.contenttypes',
|
|
||||||
]
|
|
||||||
|
|
||||||
@skipUnlessDBFeature('supports_transactions')
|
@skipUnlessDBFeature('supports_transactions')
|
||||||
def test_ticket_11101(self):
|
def test_ticket_11101(self):
|
||||||
|
|
|
@ -2344,11 +2344,7 @@ class SwappableOperationTests(OperationTestBase):
|
||||||
is in a common base class anyway)
|
is in a common base class anyway)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
available_apps = [
|
available_apps = ['migrations']
|
||||||
"migrations",
|
|
||||||
"django.contrib.auth",
|
|
||||||
"django.contrib.contenttypes",
|
|
||||||
]
|
|
||||||
|
|
||||||
@override_settings(TEST_SWAP_MODEL="migrations.SomeFakeModel")
|
@override_settings(TEST_SWAP_MODEL="migrations.SomeFakeModel")
|
||||||
def test_create_ignore_swapped(self):
|
def test_create_ignore_swapped(self):
|
||||||
|
|
Loading…
Reference in New Issue