Fix #1956. One-button upgrade from IFC2X3 to IFC4.

This commit is contained in:
Dion Moult
2022-01-17 16:20:01 +11:00
parent 1a735c4bef
commit 9ebe0aaa95
18 changed files with 206 additions and 24 deletions
+3 -1
View File
@@ -60,7 +60,9 @@ class TestEditTextProduct:
def test_run(self, ifc, drawing):
ifc.get_entity("obj").should_be_called().will_return("element")
drawing.get_text_product("element").should_be_called().will_return("existing_product")
ifc.run("drawing.unassign_product", relating_product="existing_product", related_object="element").should_be_called()
ifc.run(
"drawing.unassign_product", relating_product="existing_product", related_object="element"
).should_be_called()
ifc.run("drawing.assign_product", relating_product="product", related_object="element").should_be_called()
drawing.update_text_value("obj").should_be_called()
drawing.disable_editing_text_product("obj").should_be_called()