From 3892ac56a4b9c24ed5195fa644f6011e8d5c44ed Mon Sep 17 00:00:00 2001 From: Andrej Date: Thu, 5 Jun 2025 19:03:49 +0500 Subject: [PATCH] Skip 26b21dd test if non-standard schema is not available (e.g. in github ci) --- src/ifcpatch/test/test_ExtractElements.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ifcpatch/test/test_ExtractElements.py b/src/ifcpatch/test/test_ExtractElements.py index 97f416ae3f..bc6ef48b0d 100644 --- a/src/ifcpatch/test/test_ExtractElements.py +++ b/src/ifcpatch/test/test_ExtractElements.py @@ -75,6 +75,13 @@ class TestExtractElements(test.bootstrap.IFC4): assert output.by_type("IfcWall") assert not output.by_type("IfcSlab") + @pytest.mark.skipif( + "IFC4X3" not in ifcopenshell.ifcopenshell_wrapper.schema_names(), + reason=( + "Need some non-standard schema available for this test." + "IFC4X3 is typically available in the full build, but not in CI." + ), + ) def test_extracting_non_standard_schema_version(self): self.file = ifcopenshell.file(schema_version=(4, 3, 0, 0)) project = ifcopenshell.api.run("root.create_entity", self.file, ifc_class="IfcProject")