diff --git a/tests/unit/test_sim_endpoints.py b/tests/unit/test_sim_endpoints.py index ff092d80..639b61de 100644 --- a/tests/unit/test_sim_endpoints.py +++ b/tests/unit/test_sim_endpoints.py @@ -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',