Skip to content

Commit

Permalink
improving range query unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
costero-e committed Jan 27, 2025
1 parent 570cbf0 commit d353a68
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions beacon/tests/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,9 @@ def test_main_check_g_variants_range_query(self):
loop.run_until_complete(client.start_server())
async def test_check_g_variants_endpoint_with_parameters_is_working():
resp = await client.get("/api/g_variants?start=345675&referenceName=2&assemblyId=GRCh38&end=345681")
responsetext=await resp.text()
responsedict=json.loads(responsetext)
assert responsedict["responseSummary"]["numTotalResults"] == 6
assert resp.status == 200
loop.run_until_complete(test_check_g_variants_endpoint_with_parameters_is_working())
loop.run_until_complete(client.close())
Expand Down

0 comments on commit d353a68

Please sign in to comment.