You can now add ports to distribution elements in Blender.

This commit is contained in:
Dion Moult
2022-02-01 19:16:13 +11:00
parent f9ce0903f7
commit 10138e28c9
12 changed files with 182 additions and 12 deletions
+10
View File
@@ -103,3 +103,13 @@ class TestHidePorts:
system.get_ports("element").should_be_called().will_return(["port"])
system.delete_element_objects(["port"]).should_be_called()
subject.hide_ports(system, element="element")
class TestAddPort:
def test_run(self, ifc, system):
system.get_ports("element").should_be_called().will_return(["port"])
system.load_ports(["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")
ifc.run("system.assign_port", element="element", port="port").should_be_called()
subject.add_port(ifc, system, element="element")