Skip to content

Commit

Permalink
add sim/compare test for genes
Browse files Browse the repository at this point in the history
  • Loading branch information
kshefchek committed Nov 26, 2019
1 parent 9584c4d commit 39375b1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/unit/test_sim_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,19 @@ def test_compare_post(self):
assert response.status_code == 200
assert len(response.json['matches']) > 0

def test_compare_post_genes(self):
data = {
'is_feature_set': False,
'reference_ids': ['HP:0000739', 'HP:0001831'],
'query_ids': [
['HGNC:6407'],
['HGNC:12373']
]
}
response = self.test_client.post('/api/sim/compare', json=data)
assert response.status_code == 200
assert len(response.json['matches']) > 0

def test_score_post(self):
data = {
'id': 'testID',
Expand Down

0 comments on commit 39375b1

Please sign in to comment.