1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Fixed #20603 -- Made the test suite faster.

By avoiding to run syncdb with the full set of test models.

Thanks Anssi for the idea.
This commit is contained in:
Aymeric Augustin
2013-06-14 23:11:51 +02:00
parent f656757888
commit c3df866619
4 changed files with 22 additions and 2 deletions

View File

@@ -13,6 +13,13 @@ from swappable_models.models import Article
class SwappableModelTests(TestCase):
available_apps = [
'swappable_models',
'django.contrib.auth',
'django.contrib.contenttypes',
]
def setUp(self):
# This test modifies the installed apps, so we need to make sure
# we're not dealing with a cached app list.