Skip to content

Commit

Permalink
mock spacy
Browse files Browse the repository at this point in the history
  • Loading branch information
krisbukovi committed Mar 4, 2020
1 parent e86ee24 commit a119937
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions adsft/tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a119937

Please sign in to comment.