From 90828d9d8daedc77b9360a74b1783f9143e3ffed Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Thu, 30 Jun 2011 16:57:55 -0500 Subject: [PATCH] Actually make use of CELERY_SETUP in from_tests.py --- mediagoblin/celery_setup/from_tests.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mediagoblin/celery_setup/from_tests.py b/mediagoblin/celery_setup/from_tests.py index 0f305df2..779ecd65 100644 --- a/mediagoblin/celery_setup/from_tests.py +++ b/mediagoblin/celery_setup/from_tests.py @@ -25,6 +25,9 @@ CELERY_SETUP = False if os.environ.get('CELERY_CONFIG_MODULE') == OUR_MODULENAME: - setup_self(check_environ_for_conf=False, module_name=OUR_MODULENAME, - default_conf_file=TEST_APP_CONFIG) - CELERY_SETUP = True + if CELERY_SETUP: + pass + else: + setup_self(check_environ_for_conf=False, module_name=OUR_MODULENAME, + default_conf_file=TEST_APP_CONFIG) + CELERY_SETUP = True -- 2.25.1