1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
From: =?utf-8?q?Santiago_Ruano_Rinc=C3=B3n?= <santiago@freexian.com>
Date: Fri, 24 Oct 2025 13:44:40 -0300
Subject: Temporarily disable pyshacl-based tests
Last-Update: 2025-10-24
Forwarded: not-needed
They are failing and, as documented, have limitations.
---
tests/spdx3/validation/json_ld/test_shacl_validation.py | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
diff --git a/tests/spdx3/validation/json_ld/test_shacl_validation.py b/tests/spdx3/validation/json_ld/test_shacl_validation.py
index df2bfc1..db54e67 100644
--- a/tests/spdx3/validation/json_ld/test_shacl_validation.py
+++ b/tests/spdx3/validation/json_ld/test_shacl_validation.py
@@ -5,18 +5,10 @@ import os
import pytest
-from spdx_tools.spdx3.validation.json_ld.shacl_validation import validate_against_shacl_from_file
-
+# validate_against_shacl_from_file requires pyshacl, which is not packaged in debian yet
+# See https://bugs.debian.org/919441
+#from spdx_tools.spdx3.validation.json_ld.shacl_validation import validate_against_shacl_from_file
@pytest.mark.skip("Currently the validation against SHACL fails, refer to process.md and the known limitations.")
def test_shacl_validation():
- # insert path to example json ld
- conforms, results_graph, results_text = validate_against_shacl_from_file(
- data_file=os.path.join(os.path.dirname(__file__), "../../../SPDX3_jsonld_test.jsonld"),
- shacl_file=os.path.join(
- os.path.dirname(__file__), "../../../../src/spdx_tools/spdx3/writer/json_ld/model.ttl"
- ),
- )
- # results_graph.serialize("validation_result.rdf.xml", format="pretty-xml")
- print(results_text)
- assert conforms
+ assert True
|