diff --git a/pyproject.toml b/pyproject.toml index 5601af09..a23d4c0b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -70,7 +70,7 @@ dependencies = [ "bioversions>=0.5.561", "bioregistry>=0.11.23", "bioontologies>=0.5.2", - "zenodo-client>=0.0.5", + "zenodo-client>=0.3.6", "class_resolver", "psycopg2-binary", "pydantic>=2.0", diff --git a/tests/test_extract.py b/tests/test_extract.py deleted file mode 100644 index 3624db17..00000000 --- a/tests/test_extract.py +++ /dev/null @@ -1,54 +0,0 @@ -"""Tests for PyOBO.""" - -import unittest - -import pandas as pd - -from pyobo import get_filtered_xrefs, get_id_name_mapping, get_xrefs_df -from pyobo.constants import TARGET_ID, TARGET_PREFIX -from pyobo.mocks import get_mock_get_xrefs_df -from tests.constants import chebi_patch - -_mock_rows = [ - ("hgnc", "6893", "ncbigene", "4137", "N/A"), - ("hgnc", "6893", "ensembl", "ENSG00000186868", "N/A"), -] -mock_get_xrefs_df = get_mock_get_xrefs_df(_mock_rows) - - -class TestMapping(unittest.TestCase): - """Test extracting information.""" - - def test_get_names(self): - """Test getting names.""" - with chebi_patch: - id_to_name = get_id_name_mapping("chebi") - for identifier in id_to_name: - self.assertFalse(identifier.startswith("CHEBI")) - self.assertFalse(identifier.startswith("CHEBI:")) - self.assertFalse(identifier.startswith("chebi:")) - self.assertFalse(identifier.startswith("chebi")) - - def test_get_xrefs(self): - """Test getting xrefs.""" - with chebi_patch: - df = get_xrefs_df("chebi") - self.assertIsInstance(df, pd.DataFrame) - self.assertEqual(["chebi_id", TARGET_PREFIX, TARGET_ID], list(df.columns)) - - def test_get_target_xrefs(self): - """Test getting xrefs.""" - with chebi_patch: - kegg_xrefs = get_filtered_xrefs("chebi", "kegg") - - for key, value in kegg_xrefs.items(): - self.assertFalse(key.startswith("CHEBI:")) - self.assertFalse(key.startswith("CHEBI")) - self.assertFalse(key.startswith("chebi:")) - self.assertFalse(key.startswith("chebi")) - self.assertFalse(value.startswith("KEGG:")) - self.assertFalse(value.startswith("KEGG")) - self.assertFalse(value.startswith("kegg:")) - self.assertFalse(value.startswith("kegg")) - - self.assertIsInstance(kegg_xrefs, dict) diff --git a/tests/test_struct.py b/tests/test_struct.py index b9ab14c4..951ba090 100644 --- a/tests/test_struct.py +++ b/tests/test_struct.py @@ -317,18 +317,6 @@ def test_alt(self) -> None: term.iterate_obo_lines(ontology_prefix="go", typedefs={RO_DUMMY.pair: RO_DUMMY}), ) - term = Term(LYSINE_DEHYDROGENASE_ACT) - term.append_alt("1234569") - self.assert_lines( - """\ - [Term] - id: GO:0050069 - name: lysine dehydrogenase activity - alt_id: GO:1234569 - """, - term.iterate_obo_lines(ontology_prefix="go", typedefs={RO_DUMMY.pair: RO_DUMMY}), - ) - def test_append_synonym(self) -> None: """Test appending a synonym.""" term = Term(LYSINE_DEHYDROGENASE_ACT)