Skip to content

Commit

Permalink
#602: Added test to ensure no ref check for oob variant
Browse files Browse the repository at this point in the history
  • Loading branch information
reece committed Jun 23, 2020
1 parent c05c85f commit c00107d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/issues/test_602.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env python

import pytest

import hgvs
from hgvs.exceptions import HGVSInvalidIntervalError


def test_602(parser, am37):
"""ensure that there's no ref check for variants beyond bounds of transcript"""

hgvs_g = "NC_000006.11:g.33415675_33422480del"
var_g = parser.parse(hgvs_g)

hgvs.global_config.mapping.strict_bounds = True # default
with pytest.raises(HGVSInvalidIntervalError):
var_c = am37.g_to_c(var_g, "NM_006772.2")

hgvs.global_config.mapping.strict_bounds = False
var_c = am37.g_to_c(var_g, "NM_006772.2") # No error

0 comments on commit c00107d

Please sign in to comment.