Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions tests/sources/test_uta_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,18 @@ async def test_get_transcripts_from_gene(test_db):
assert len(resp) == 0


@pytest.mark.asyncio
async def test_get_consistent_transcripts_from_gene(test_db):
gene = "MIR9-1HG"
results = await test_db.get_transcripts(gene=gene)
expected = list(results["tx_ac"])
# Do the same query 30 times and ensure it gives consistent results each time
for _i in range(30):
results = await test_db.get_transcripts(gene=gene)
actual = list(results["tx_ac"])
assert actual == expected


@pytest.mark.asyncio
async def test_get_chr_assembly(test_db):
"""Test that get_chr_assembly works correctly."""
Expand Down
Loading