Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed failures in test_save #747

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 21 additions & 7 deletions tests/test_save.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,21 @@ def test_save_emmo_domain_ontology(
write_catalog_file=True,
)
assert get_ontology(savedfile).load()
assert set(os.listdir(outputdir)) == {"emmo.info", "w3id.org"}

outputfiles = set(os.listdir(outputdir))
for fname in {"emmo.info", "w3id.org"}:
assert fname in outputfiles

assert set(
os.listdir(outputdir / "emmo.info" / "emmo" / "domain" / "chameo")
) == {"chameo.rdfxml", "catalog-v001.xml"}
assert set(

outputfiles = set(
os.listdir(outputdir / "emmo.info" / "emmo" / "disciplines")
) == {"isq.rdfxml", "catalog-v001.xml"}
)
for fname in {"isq.rdfxml", "catalog-v001.xml"}:
assert fname in outputfiles

assert set(os.listdir(outputdir / "w3id.org" / "emmo" / "domain")) == {
"dummyonto.rdfxml",
"catalog-v001.xml",
Expand All @@ -262,9 +270,15 @@ def test_save_emmo_domain_ontology(
"dummyonto.rdfxml",
"catalog-v001.xml",
}
assert set(

outputfiles = set(
os.listdir(outputdir / "emmo.info" / "emmo" / "domain" / "chameo")
) == {"chameo.rdfxml", "catalog-v001.xml"}
assert set(
)
for fname in {"chameo.rdfxml", "catalog-v001.xml"}:
assert fname in outputfiles

outputfiles = set(
os.listdir(outputdir / "emmo.info" / "emmo" / "disciplines")
) == {"isq.rdfxml", "catalog-v001.xml"}
)
for fname in {"isq.rdfxml", "catalog-v001.xml"}:
fname in outputfiles
Loading