示例#1
0
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(
    )
示例#2
0
 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())
示例#3
0
 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)
示例#4
0
 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)
示例#5
0
 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)
示例#6
0
 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)
示例#7
0
 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)
示例#8
0
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()