diff --git a/tests/test_converter.py b/tests/test_converter.py index 6db2ce7..57729e1 100644 --- a/tests/test_converter.py +++ b/tests/test_converter.py @@ -1,4 +1,6 @@ """Module for testing Converter initialization""" +import re + import pytest from tests.conftest import DATA_DIR @@ -19,3 +21,11 @@ def test_invalid(): with pytest.raises(ValueError, match="Liftover must be to/from different sources."): Converter(Genome.HG19, Genome.HG19) + + with pytest.raises( + ValueError, + match=re.escape( + "Unable to coerce to_db value 'hg18' to a known reference genome: [, ]" + ), + ): + Converter(Genome.HG19, "hg18")