Skip to content

Commit

Permalink
Test updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
vladd-bit committed Oct 18, 2022
1 parent 1dba66a commit cd6ac08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion medcat_service/test/test_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def testProcessSingleBlankDocs(self):
self.assertEqual(response.status_code, 200)

data = json.loads(response.get_data(as_text=True))
self.assertEqual(len(data["result"]["annotations"]), 0)
self.assertEqual(len(data["result"]["annotations"][0]), 0)

def testProcessBulkBlankDocs(self):
docs = common.get_blank_documents()
Expand Down
3 changes: 1 addition & 2 deletions run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ set -e

# download the sci-scpacy language model
python3 -m pip install -r medcat_service/requirements.txt
python3 -m spacy download en_core_web_sm
python3 -m spacy download en_core_web_md
python3 -m spacy download en_core_web_lg
pip3 install https://s3-us-west-2.amazonaws.com/ai2-s2-scispacy/releases/v0.4.0/en_core_sci_md-0.4.0.tar.gz
pip3 install https://s3-us-west-2.amazonaws.com/ai2-s2-scispacy/releases/v0.4.0/en_core_sci_lg-0.4.0.tar.gz

# download the test MedCAT model
( cd ./models && bash download_medmen.sh )
Expand Down

0 comments on commit cd6ac08

Please sign in to comment.