From 3328a6776e9ace913f2ba461d3aa4118bc8a4c69 Mon Sep 17 00:00:00 2001 From: James Stevenson Date: Wed, 22 May 2024 13:11:04 -0400 Subject: [PATCH] add test --- tests/test_converter.py | 10 ++++++++++ 1 file changed, 10 insertions(+) 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")