From df38131c08e944e51abfeedd952df447dd7f2630 Mon Sep 17 00:00:00 2001 From: Leonardo macOS Date: Mon, 6 Jan 2025 20:24:04 +0100 Subject: [PATCH] added trivial test so coverage won't complain --- tests/test_mondo_score_utils.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/test_mondo_score_utils.py diff --git a/tests/test_mondo_score_utils.py b/tests/test_mondo_score_utils.py new file mode 100644 index 00000000..63a1a3e6 --- /dev/null +++ b/tests/test_mondo_score_utils.py @@ -0,0 +1,13 @@ +import unittest + +from malco.post_process.mondo_score_utils import omim_mappings +from malco.post_process.ranking_utils import get_adapter + + +class TestOntologyUtils(unittest.TestCase): + + def test_mappings(self): + mondo_input = "MONDO:0007566" + omims_output = omim_mappings(mondo_input, get_adapter("sqlite:obo:mondo")) + truth = ["OMIM:132800"] + self.assertEqual(truth, omims_output)