diff --git a/tests/test_get_by_label.py b/tests/test_get_by_label.py index 5b84a5281..669ad9715 100644 --- a/tests/test_get_by_label.py +++ b/tests/test_get_by_label.py @@ -109,8 +109,11 @@ def test_get_by_label_emmo(emmo: "Ontology") -> None: assert emmo[emmo.Atom.iri] == emmo.Atom # Load an ontology with imported sub-ontologies + # Note that this test also includes testing of loading + # ontology with catalog file directly from the web + # It is therefore not duplicated in test_load. onto = get_ontology( - "https://raw.githubusercontent.com/BIG-MAP/BattINFO/master/battinfo.ttl" + "https://raw.githubusercontent.com/emmo-repo/domain-battery/master/battery.ttl" ).load() assert onto.Electrolyte.prefLabel.en.first() == "Electrolyte" diff --git a/tests/test_load.py b/tests/test_load.py index bb5f04223..35c911fd3 100755 --- a/tests/test_load.py +++ b/tests/test_load.py @@ -35,11 +35,8 @@ def test_load(repo_dir: "Path", testonto: "Ontology") -> None: assert str(testonto.TestClass.prefLabel.first()) == "TestClass" # Use catalog file when downloading from web - onto = get_ontology( - "https://raw.githubusercontent.com/BIG-MAP/BattINFO/master/" - "battinfo.ttl" - ).load() - assert str(onto.Electrolyte.prefLabel.first()) == "Electrolyte" + # This is tested in test_get_by_label in which some additional tests + # are performed on labels. with pytest.raises( EMMOntoPyException,