forked from Botanical/BotanJS
Bypass Celery for UNIT_TEST
This commit is contained in:
parent
70618b6b91
commit
27542b133c
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user