Fix #1872. Bug where duplicating an object didn't duplicate its styles.

This commit is contained in:
Dion Moult
2021-11-11 14:51:05 +11:00
parent d5b92c0fea
commit f5f88f4b97
6 changed files with 49 additions and 6 deletions
+2 -1
View File
@@ -62,7 +62,8 @@ class TestAddRepresentation:
# Add styles
geometry.get_object_materials_without_styles("obj").should_be_called().will_return(["material"])
test.core.test_style.TestAddStyle.predict(self, ifc, style, obj="material")
geometry.run_style_add_style(obj="material").should_be_called()
geometry.get_styles("obj").should_be_called().will_return(["style"])
# Link style to representation items
geometry.should_use_presentation_style_assignment().should_be_called().will_return(False)