Skip to content

Commit 8fe7461

Browse files
committed
Load subclass hierarchy to prepare for case_file implying ObservableObject superclass
References: * [UCO OC-65] (CP-13) UCO needs subclasses of ObservableObject Signed-off-by: Alex Nelson <[email protected]>
1 parent 4cf0967 commit 8fe7461

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/case_utils/case_file/test_case_file.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
import pytest
1919
import rdflib.plugins.sparql # type: ignore
2020

21+
import case_utils.ontology
22+
2123
_logger = logging.getLogger(os.path.basename(__file__))
2224

2325
IRI_UCO_CORE = "https://unifiedcyberontology.org/ontology/uco/core#"
@@ -42,6 +44,8 @@ def load_graph(
4244
) -> rdflib.Graph:
4345
in_graph = rdflib.Graph()
4446
in_graph.parse(filename)
47+
# The queries in this test rely on the subclass hierarchy. Load it.
48+
case_utils.ontology.load_subclass_hierarchy(in_graph)
4549
return in_graph
4650

4751
@pytest.fixture

0 commit comments

Comments
 (0)