Skip to content

Commit

Permalink
Support annotation multi-hit
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerry committed Nov 18, 2020
1 parent 0b4e8c7 commit 32d8f9f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion requirements_web.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# biothings
biothings[web_extra]==0.8.1
biothings[web_extra]==0.8.2
elasticsearch==6.3.1
elasticsearch-dsl==6.3.1

Expand Down
5 changes: 5 additions & 0 deletions src/tests/test_annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,8 @@ def test_044_annotation_post(self):
# res = self.request("variant", method='POST', data={'ids': VARIANT_POST_LIST}).json()
# assert len(res) == 999
pass # TODO

def test_050_annotation_multihit(self):
res = self.request("variant/rs2267").json()
assert isinstance(res, list)
assert len(res) == 2

0 comments on commit 32d8f9f

Please sign in to comment.