Skip to content

Commit

Permalink
Remove Bioregistry from testing
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Aug 5, 2023
1 parent 859362f commit ca09396
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
2 changes: 0 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ tests =
coverage
pandas =
pandas
bioregistry =
bioregistry>=0.5.136
flask =
flask
defusedxml
Expand Down
11 changes: 0 additions & 11 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

import pandas as pd
import rdflib
from bioregistry.export.prefix_maps import EXTENDED_PREFIX_MAP_PATH

from curies.api import (
CompressionError,
Expand Down Expand Up @@ -209,16 +208,6 @@ def assert_bioregistry_converter(self, converter: Converter) -> None:
self.assertIn(chebi_uri, converter.reverse_prefix_map)
self.assertEqual("chebi", converter.reverse_prefix_map[chebi_uri])

@unittest.skipUnless(
EXTENDED_PREFIX_MAP_PATH.is_file(),
reason="missing local, editable installation of the Bioregistry",
)
def test_bioregistry_editable(self):
"""Test loading the bioregistry extended prefix map locally."""
records = json.loads(EXTENDED_PREFIX_MAP_PATH.read_text())
converter = Converter.from_extended_prefix_map(records)
self.assert_bioregistry_converter(converter)

def test_load_path(self):
"""Test loading from paths."""
with tempfile.TemporaryDirectory() as directory:
Expand Down
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ commands =
extras =
tests
pandas
bioregistry
flask
fastapi
rdflib
Expand Down

0 comments on commit ca09396

Please sign in to comment.