From a119937546f8dbf1e7796854ab1cb2303f0feb60 Mon Sep 17 00:00:00 2001 From: kris Date: Wed, 4 Mar 2020 10:24:53 -0500 Subject: [PATCH] mock spacy --- adsft/tests/test_base.py | 2 ++ config.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/adsft/tests/test_base.py b/adsft/tests/test_base.py index e989d62..b5805d8 100644 --- a/adsft/tests/test_base.py +++ b/adsft/tests/test_base.py @@ -18,6 +18,8 @@ import time import json +from mock import MagicMock +sys.modules['spacy'] = MagicMock() from adsft import tasks, app from adsft import checker diff --git a/config.py b/config.py index b4d52ac..07d9a4a 100644 --- a/config.py +++ b/config.py @@ -16,8 +16,8 @@ FULLTEXT_EXTRACT_PATH = './live' -NER_FACILITY_MODEL_ACK = './ADSfulltext_ner_models/ner_facility_ack/ner_model_facility' -NER_FACILITY_MODEL_FT = './ADSfulltext_ner_models/ner_facility_ft/ner_model_facility' +NER_FACILITY_MODEL_ACK = './ner_models/ner_facility_ack/ner_model_facility/' +NER_FACILITY_MODEL_FT = './ner_models/ner_facility_ft/ner_model_facility/' ### Testing: # When 'True', it converts all the asynchronous calls into synchronous,