Skip to content

Commit c5bdfb3

Browse files
test: use shape_collection ontology declaration in lib imports test
Co-authored-by: aider (openai/gpt-5) <aider@aider.chat>
1 parent 38e7014 commit c5bdfb3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/unit/api/test_model_manifest_endpoint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ def test_post_model_manifest_with_library_ids_sets_imports(client, building_moti
2424
# Setup
2525
model = Model.create(name="urn:my_model_ids")
2626
lib = Library.create("lib_ids")
27-
db_lib = building_motif.table_connection.get_db_library(lib.id)
28-
db_lib.shape_collection.graph_name = "urn:test:lib_ids_sc"
27+
sc = lib.get_shape_collection()
28+
sc.graph.add((URIRef("urn:test:lib_ids_sc"), RDF.type, OWL.Ontology))
2929
building_motif.session.commit()
3030

3131
# Act

0 commit comments

Comments
 (0)