mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user