mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 14:02:27 +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:
|
for style_type in STYLE_TYPES:
|
||||||
style = self.file.create_entity(style_type)
|
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)
|
ifcopenshell.api.style.remove_style(self.file, style=style)
|
||||||
assert len(self.file.by_type("IfcPresentationStyle")) == 0
|
assert len(self.file.by_type("IfcPresentationStyle")) == 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user