forked from Botanical/BotanJS
Bypass Celery for UNIT_TEST
This commit is contained in:
parent
70618b6b91
commit
27542b133c
@ -2,7 +2,11 @@
|
|||||||
import os
|
import os
|
||||||
from botanjs.classmap import ClassMap
|
from botanjs.classmap import ClassMap
|
||||||
|
|
||||||
CeleryExists = True
|
if os.getenv( "UNIT_TEST" ) == "1":
|
||||||
|
CeleryExists = False
|
||||||
|
else:
|
||||||
|
CeleryExists = True
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from celery import Celery
|
from celery import Celery
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
Loading…
Reference in New Issue
Block a user