fix test_remove_non_surface_styles

.FillStyles is not optional for IfcFillAreaStyles
This commit is contained in:
Andrej730
2024-11-11 15:24:56 +05:00
parent 05542ca6ec
commit 8070338087
@@ -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