From: Cassus Adam Banko Date: Mon, 25 Jul 2011 14:09:43 +0000 (+0200) Subject: settings options to control which tests to run X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=7721e6586d146610ee22a4285d2843b08e51436a;p=django-social-auth.git settings options to control which tests to run SOCIAL_AUTH_TEST_TWITTER, SOCIAL_AUTH_TEST_GOOGLE, SOCIAL_AUTH_TEST_FACEBOOK --- diff --git a/social_auth/tests/__init__.py b/social_auth/tests/__init__.py index db7bfb3..bc143cc 100644 --- a/social_auth/tests/__init__.py +++ b/social_auth/tests/__init__.py @@ -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 *