Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed May 22, 2024
1 parent 296228f commit 3328a67
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_converter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
"""Module for testing Converter initialization"""
import re

import pytest
from tests.conftest import DATA_DIR

Expand All @@ -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: [<Genome.HG38: 'hg38'>, <Genome.HG19: 'hg19'>]"
),
):
Converter(Genome.HG19, "hg18")

0 comments on commit 3328a67

Please sign in to comment.