]> git.parisson.com Git - django-social-auth.git/commitdiff
settings options to control which tests to run
authorCassus Adam Banko <banko.adam@gmail.com>
Mon, 25 Jul 2011 14:09:43 +0000 (16:09 +0200)
committerCassus Adam Banko <banko.adam@gmail.com>
Wed, 17 Aug 2011 10:40:24 +0000 (12:40 +0200)
SOCIAL_AUTH_TEST_TWITTER, SOCIAL_AUTH_TEST_GOOGLE, SOCIAL_AUTH_TEST_FACEBOOK

social_auth/tests/__init__.py

index db7bfb39db8bfb19d864a530a89fe85645b324ca..bc143ccac2af403b8184680c5a552ca79ffd3945 100644 (file)
@@ -1,3 +1,8 @@
-from social_auth.tests.twitter import *
-from social_auth.tests.facebook import *
-from social_auth.tests.google import *
+from django.conf import settings
+
+if getattr(settings,'SOCIAL_AUTH_TEST_TWITTER', True):
+    from social_auth.tests.twitter import *
+if getattr(settings,'SOCIAL_AUTH_TEST_FACEBOOK', True):
+    from social_auth.tests.facebook import *
+if getattr(settings,'SOCIAL_AUTH_TEST_GOOGLE', True):
+    from social_auth.tests.google import *