fix core.root.assign_class error after 3884403 #4719

This commit is contained in:
Andrej730
2024-05-24 14:23:10 +05:00
parent 6d887d593e
commit df15a37127
5 changed files with 20 additions and 7 deletions
+3 -1
View File
@@ -146,7 +146,9 @@ class TestAddPort:
system.get_ports("element").should_be_called().will_return(["port"])
system.load_ports("element", ["port"]).should_be_called()
system.create_empty_at_cursor_with_element_orientation("element").should_be_called().will_return("obj")
system.run_root_assign_class(obj="obj", ifc_class="IfcDistributionPort").should_be_called().will_return("port")
system.run_root_assign_class(
obj="obj", ifc_class="IfcDistributionPort", should_add_representation=False
).should_be_called().will_return("port")
ifc.run("system.assign_port", element="element", port="port").should_be_called()
subject.add_port(ifc, system, element="element")