Esempio n. 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(
    )
Esempio n. 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())
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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()