From 7721e6586d146610ee22a4285d2843b08e51436a Mon Sep 17 00:00:00 2001 From: Cassus Adam Banko Date: Mon, 25 Jul 2011 16:09:43 +0200 Subject: [PATCH] settings options to control which tests to run SOCIAL_AUTH_TEST_TWITTER, SOCIAL_AUTH_TEST_GOOGLE, SOCIAL_AUTH_TEST_FACEBOOK --- social_auth/tests/__init__.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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 * -- 2.39.5