Skip to content

Commit

Permalink
Fixed test call.
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav committed Oct 15, 2024
1 parent 0a2fabc commit 3653696
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def test_bulk_lookup():
'strings': ['beta-secretase', 'Parkinson'],
'limit': 100,
}
response = client.post("/bulk-lookup", params=params)
response = client.post("/bulk-lookup", json=params)
results = response.json()
assert len(results) == 2
assert len(results['beta-secretase']) == 1
Expand All @@ -138,6 +138,8 @@ def test_bulk_lookup():

# Try it again with the biolink_types set.
params['biolink_types'] = ['biolink:Disease']
response = client.post("/bulk-lookup", json=params)
results = response.json()
assert len(results) == 2
assert len(results['beta-secretase']) == 0
assert len(results['Parkinson']) == 0

0 comments on commit 3653696

Please sign in to comment.