-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds tests for _taxon_map, categories fixes.
- Loading branch information
1 parent
69f8976
commit 1511b9f
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |