diff --git a/botanjs/service/jwork.py b/botanjs/service/jwork.py index a0aacc8..6d6c182 100644 --- a/botanjs/service/jwork.py +++ b/botanjs/service/jwork.py @@ -2,7 +2,11 @@ import os from botanjs.classmap import ClassMap -CeleryExists = True +if os.getenv( "UNIT_TEST" ) == "1": + CeleryExists = False +else: + CeleryExists = True + try: from celery import Celery except ImportError: