fix tests after a971860

This commit is contained in:
Andrej730
2024-02-28 11:56:43 +05:00
parent b1811b7604
commit f381dce64d
@@ -38,7 +38,11 @@ class TestUnassignRepresentationStyles(test.bootstrap.IFC4):
) )
style2 = self.file.createIfcSurfaceStyle() style2 = self.file.createIfcSurfaceStyle()
ifcopenshell.api.run( ifcopenshell.api.run(
"style.assign_representation_styles", self.file, styles=[style2], shape_representation=representation "style.assign_representation_styles",
self.file,
styles=[style2],
shape_representation=representation,
replace_previous_same_type_style=False,
) )
assert item.StyledByItem[0].Styles == (style, style2) assert item.StyledByItem[0].Styles == (style, style2)
@@ -81,6 +85,7 @@ class TestUnassignRepresentationStyles(test.bootstrap.IFC4):
styles=[style2], styles=[style2],
shape_representation=representation, shape_representation=representation,
should_use_presentation_style_assignment=True, should_use_presentation_style_assignment=True,
replace_previous_same_type_style=False,
) )
assert style_assignment.Styles == (style, style2) assert style_assignment.Styles == (style, style2)