def test_add_folder(modeler, mgr, model): modeler.tree_ui.expand_to_node("Objects") dia = NewNodeBaseDialog(modeler, "Add Folder", modeler.get_current_server()) args = dia.get_args() new_node = mgr.add_folder(*args) assert new_node in modeler.get_current_server().nodes.objects.get_children( )
def test_add_folder(self): self.modeler.tree_ui.expand_to_node("Objects") dia = NewNodeBaseDialog(self.modeler, "Add Folder", self.modeler.get_current_server()) args = dia.get_args() new_node = self.mgr.add_folder(*args) self.assertIn( new_node, self.modeler.get_current_server().nodes.objects.get_children())
def add_data_type(self): args, ok = NewNodeBaseDialog.getArgs(self.modeler, "Add Data Type", self._model_mgr.server_mgr) if ok: self._model_mgr.add_data_type(*args)
def add_folder(self): args, ok = NewNodeBaseDialog.getArgs(self.modeler, "Add Folder", self._model_mgr.server_mgr) if ok: node = self._model_mgr.add_folder(*args) self._add_modelling_rule(node)
def add_folder(self): args, ok = NewNodeBaseDialog.getArgs(self.modeler, "Add Folder", self._model_mgr.server_mgr) if ok: self._model_mgr.add_folder(*args)
def test_add_folder(modeler, mgr, model): modeler.tree_ui.expand_to_node("Objects") dia = NewNodeBaseDialog(modeler, "Add Folder", modeler.get_current_server()) args = dia.get_args() new_node = mgr.add_folder(*args) assert new_node in modeler.get_current_server().nodes.objects.get_children()