summaryrefslogtreecommitdiff
path: root/tests/swappable_models
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-06-14 23:11:51 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-06-14 23:16:15 +0200
commitc3df86661955f218de4788a57338bb23428f5525 (patch)
treed385c6358b7255742beb37c2d3bb77b67913106c /tests/swappable_models
parentf6567578887b7cc4efb0006ac4a3a5ba7a1c2cc7 (diff)
downloaddjango-c3df86661955f218de4788a57338bb23428f5525.tar.gz
Fixed #20603 -- Made the test suite faster.
By avoiding to run syncdb with the full set of test models. Thanks Anssi for the idea.
Diffstat (limited to 'tests/swappable_models')
-rw-r--r--tests/swappable_models/tests.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/swappable_models/tests.py b/tests/swappable_models/tests.py
index d3d61341d2..858061db23 100644
--- a/tests/swappable_models/tests.py
+++ b/tests/swappable_models/tests.py
@@ -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.