Skip to content

Graph-Native Infrastructure for Context and Accountable AI Systems

test: assert SHACL limit messages name the env var

pkuptaf56bd865d9c
diff --git a/tests/explorer/test_ontology_subissue3.py b/tests/explorer/test_ontology_subissue3.py
index b24d596a..23192b96 100644
--- a/tests/explorer/test_ontology_subissue3.py
+++ b/tests/explorer/test_ontology_subissue3.py
@@ -735,6 +735,7 @@ onto:PersonShape a sh:NodeShape ;
payload = response.json()
assert payload["status"] == "error"
assert "exceeds maximum allowed size" in payload["message"]
+ assert "SEMANTICA_MAX_SHACL_TURTLE_BYTES" in payload["message"]
def test_validate_shacl_rejects_too_many_triples(client):
@@ -757,6 +758,7 @@ onto:PersonShape a sh:NodeShape ;
payload = response.json()
assert payload["status"] == "error"
assert "exceeds maximum allowed limit" in payload["message"]
+ assert "SEMANTICA_MAX_SHACL_TRIPLES" in payload["message"]
def test_validate_shacl_handles_timeout(client):
@@ -786,6 +788,7 @@ onto:PersonShape a sh:NodeShape ;
payload = response.json()
assert payload["status"] == "error"
assert "timed out" in payload["message"]
+ assert "SEMANTICA_MAX_SHACL_TIMEOUT" in payload["message"]
def test_validate_shacl_returns_unavailable_for_truncated_graph(client):