We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31b379b commit 21c4ba3Copy full SHA for 21c4ba3
tests/sources/test_uta_database.py
@@ -284,6 +284,18 @@ async def test_get_transcripts_from_gene(test_db):
284
assert len(resp) == 0
285
286
287
+@pytest.mark.asyncio
288
+async def test_get_consistent_transcripts_from_gene(test_db):
289
+ gene = "MIR9-1HG"
290
+ results = await test_db.get_transcripts(gene=gene)
291
+ expected = list(results["tx_ac"])
292
+ # Do the same query 30 times and ensure it gives consistent results each time
293
+ for _i in range(30):
294
295
+ actual = list(results["tx_ac"])
296
+ assert actual == expected
297
+
298
299
@pytest.mark.asyncio
300
async def test_get_chr_assembly(test_db):
301
"""Test that get_chr_assembly works correctly."""
0 commit comments