Skip to content

Commit

Permalink
Adds tests for _taxon_map, categories fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
falquaddoomi committed Apr 8, 2022
1 parent 69f8976 commit 1511b9f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/nlp-annotation-categories.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Feature: NLP Annotate Entities returns categories from SciGraph

## NLP Annotate Entities returns results w/non-empty 'categories'

Scenario: User requests NLP annotated entities for the string 'males'
Given a path "/nlp/annotate/entities?content=males"
then the JSON should have some JSONPath "spans.[*].token.[*].categories.[*]" containing "string" "anatomical entity"
9 changes: 9 additions & 0 deletions tests/search-entity-taxonmap.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Feature: Search Entity Term returns a _taxon_map key w/taxon IDs

## Search Entity Term returns a _taxon_map key

Scenario: User queries for marfan's disease
Given a path "/search/entity/marfan"
then the content should contain "_taxon_map"
then the JSON should have some JSONPath "facet_counts._taxon_map.[*].id" containing "string" "NCBITaxon:9606"
then the JSON should have some JSONPath "facet_counts._taxon_map.[*].label" containing "string" "Homo sapiens"

0 comments on commit 1511b9f

Please sign in to comment.