Skip to content

Commit

Permalink
test: add test case for get exon coordinates where genomic coord occu…
Browse files Browse the repository at this point in the history
…rs between exons
  • Loading branch information
katiestahl committed Sep 26, 2024
1 parent a96b423 commit 3d6eed3
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions server/tests/integration/test_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,32 @@ def check_coords_response(response: dict, expected_response: dict):
check_coords_response,
)

# check correct response for genomic coordinate that occurs between exons (should get nearest junction)
await check_response(
"/api/utilities/get_exon?chromosome=NC_000001.11&end=154191900&transcript=NM_152263.3",
{
"coordinates_data": {
"gene": "TPM3",
"genomic_ac": "NC_000001.11",
"tx_ac": "NM_152263.3",
"seg_end": {
"exon_ord": 0,
"offset": 1,
"genomic_location": {
"type": "SequenceLocation",
"sequenceReference": {
"type": "SequenceReference",
"refgetAccession": "SQ.Ya6Rs7DHhDeg7YaOSg1EoNi3U_nQ9SvO",
},
"start": 154191900,
},
},
"errors": [],
}
},
check_coords_response,
)


@pytest.mark.asyncio()
async def test_get_sequence_id(check_response):
Expand Down

0 comments on commit 3d6eed3

Please sign in to comment.