Skip to content

Commit

Permalink
Add homologene.genes field test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerry committed Jul 25, 2020
1 parent 23d5404 commit 92e5622
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/tests/test_2_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,16 @@ def test_255_taxtree(self):
res2 = self.request("query?q=lytic%20enzyme&species=1386").json()
assert res2['total'] == 0

def test_260_order(self):

url = 'gene/695?fields=homologene'
res = self.request(url).json()
genes = [tuple(list_) for list_ in res['homologene']['genes']]
assert (9606, 695) in genes # human
assert (10090, 12229) in genes # mouse
assert (10116, 367901) in genes # rat
assert (695, 9606) not in genes # this field should not be sorted


class TestQueryPOST(BiothingsTestCase):

Expand Down

0 comments on commit 92e5622

Please sign in to comment.