Skip to content

Commit

Permalink
Removed available_apps on TestCase subclasses.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
charettes committed Jan 13, 2017
1 parent dc11930 commit 91023d7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion tests/fixtures/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
5 changes: 0 additions & 5 deletions tests/multiple_database/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1794,11 +1794,6 @@ def allow_migrate(self, db, app_label, **hints):

class MigrateTestCase(TestCase):

available_apps = [
'multiple_database',
'django.contrib.auth',
'django.contrib.contenttypes'
]
multi_db = True

def test_migrate_to_other_database(self):
Expand Down
6 changes: 0 additions & 6 deletions tests/swappable_models/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@

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"
Expand Down

0 comments on commit 91023d7

Please sign in to comment.