Skip to content

Commit 1db7e05

Browse files
committed
update tests
1 parent 3792e13 commit 1db7e05

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

tests/sources/test_uta_database.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Test UTA data source."""
22

3+
import re
34
from urllib.parse import urlparse
45

56
import pytest
@@ -356,7 +357,12 @@ async def test_get_alt_ac_start_or_end(
356357
resp = await uta_repo.get_alt_ac_start_or_end("NM_152263.3", 822, 892, None)
357358
assert resp == tpm3_1_8_end_genomic
358359

359-
with pytest.raises(NoMatchingAlignmentError):
360+
with pytest.raises(
361+
NoMatchingAlignmentError,
362+
match=re.escape(
363+
"Unable to find a result where NM_152263.63 has transcript coordinates (tx_exon_start=822, tx_exon_end=892) between an exon's start and end coordinates on gene=None"
364+
),
365+
):
360366
await uta_repo.get_alt_ac_start_or_end("NM_152263.63", 822, 892, None)
361367

362368

0 commit comments

Comments
 (0)