From 8070338087607560e50eb48efb4e337c19e944c9 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Mon, 11 Nov 2024 15:24:56 +0500 Subject: [PATCH] fix test_remove_non_surface_styles .FillStyles is not optional for IfcFillAreaStyles --- src/ifcopenshell-python/test/api/style/test_remove_style.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ifcopenshell-python/test/api/style/test_remove_style.py b/src/ifcopenshell-python/test/api/style/test_remove_style.py index 7282d38606..1993ef3cf3 100644 --- a/src/ifcopenshell-python/test/api/style/test_remove_style.py +++ b/src/ifcopenshell-python/test/api/style/test_remove_style.py @@ -44,6 +44,8 @@ class TestRemoveStyle(test.bootstrap.IFC4): ] for style_type in STYLE_TYPES: style = self.file.create_entity(style_type) + if style_type == "IfcFillAreaStyle": + style.FillStyles = (self.file.create_entity("IfcDraughtingPreDefinedColour", Name="cyan"),) ifcopenshell.api.style.remove_style(self.file, style=style) assert len(self.file.by_type("IfcPresentationStyle")) == 0