mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
fix test_remove_non_surface_styles
.FillStyles is not optional for IfcFillAreaStyles
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user