Skip to content

Commit c571c73

Browse files
committed
Preserved the original @context when re-serializing the temp crate so CI won’t downgrade it to 1.1.
1 parent 2a03bd6 commit c571c73

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/shared.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ def do_entity_test(
155155
rocrate_graph.update(rocrate_entity_mod_sparql)
156156

157157
# save the updated RO-Crate metadata
158-
context = "https://w3id.org/ro/crate/1.1/context"
158+
# preserve the original context to avoid forcing a downgrade
159+
context = rocrate.get("@context", "https://w3id.org/ro/crate/1.2/context")
159160
rocrate_graph.serialize(
160161
Path(temp_rocrate_path, "ro-crate-metadata.json"),
161162
format="json-ld",

0 commit comments

Comments
 (0)