update robot #200
GitHub Actions / JUnit Test Report
failed
Nov 4, 2024 in 0s
8 tests run, 7 passed, 0 skipped, 1 failed.
Annotations
Check failure on line 70 in .mypy_cache/3.11/tests/test_reason.data.json
github-actions / JUnit Test Report
test_reason.tests_reason
AssertionError: Test failed for reasoners whelk
Raw output
_setup = None
@needs_cmem
def tests_reason(_setup: None) -> None:
"""Tests for Reason plugin"""
def test_reasoner(reasoner: str, err_list: list) -> list:
ReasonPlugin(
data_graph_iri=REASON_DATA_GRAPH_IRI,
ontology_graph_iri=REASON_ONTOLOGY_GRAPH_IRI_1,
output_graph_iri=REASON_RESULT_GRAPH_IRI,
reasoner=reasoner,
sub_class=False,
class_assertion=True,
property_assertion=True,
validate_profile=True,
import_ontology=True,
).execute(None, context=TestExecutionContext())
result = get_remote_graph(REASON_RESULT_GRAPH_IRI)
test = Graph().parse(Path(__path__[0]) / f"test_{reasoner}.ttl", format="turtle")
if not isomorphic(result, test):
err_list.append(reasoner)
return err_list
errors_list: list[str] = []
for reasoner in REASONERS:
errors_list = test_reasoner(reasoner, errors_list)
if errors_list:
errors = ""
errors += f"Test failed for reasoners {', '.join(errors_list)}."
> raise AssertionError(errors[:-1])
E AssertionError: Test failed for reasoners whelk
tests/test_reason.py:70: AssertionError
Loading