Bypass Celery for UNIT_TEST

This commit is contained in:
斟酌 鵬兄 2022-08-02 22:51:38 +09:00
parent 70618b6b91
commit 27542b133c

View File

@ -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: