]> SALOME platform Git repositories - tools/eficas.git/commitdiff
Salome HOME
This commit was manufactured by cvs2git to create tag 'V1_10b4'. V1_10b4
authorcvs2git <renaud.nedelec@opencascade.com>
Tue, 20 Jun 2006 09:52:39 +0000 (09:52 +0000)
committercvs2git <renaud.nedelec@opencascade.com>
Tue, 20 Jun 2006 09:52:39 +0000 (09:52 +0000)
Sprout from BR_dev_mars_06 2006-06-20 09:52:38 UTC Christian Caremoli 'correction conversion COMM_COMMENTARISE dans __str__'
Delete:
    Tests/testihm/common.py
    Tests/testihm/testihm1.py
    Tests/testihm/testihm2.py
    Tests/testihm/testihm3.py
    Tests/testihm/testihm4.py

Tests/testihm/common.py [deleted file]
Tests/testihm/testihm1.py [deleted file]
Tests/testihm/testihm2.py [deleted file]
Tests/testihm/testihm3.py [deleted file]
Tests/testihm/testihm4.py [deleted file]

diff --git a/Tests/testihm/common.py b/Tests/testihm/common.py
deleted file mode 100644 (file)
index fbd438a..0000000
+++ /dev/null
@@ -1,201 +0,0 @@
-# -*- coding: utf-8 -*-
-
-root=None
-jdcdisplay=None
-
-class UnKnownNode(Exception):pass
-
-def init_common(r,j):
-    global root,jdcdisplay
-    root=r
-    jdcdisplay=j
-
-def KP_return():
-    root.event_generate("<Return>")
-    root.update()
-
-def delete_node(panel):
-    panel.node.delete()
-
-def uncomment_command(panel):
-    panel.bouton_unc.invoke()
-    root.update()
-    panel=jdcdisplay.panel_courant
-    return panel
-
-def comment_command(panel):
-    panel.nb.selectpage('Commentaire')
-    panel.comment_commande()
-    root.update()
-    panel=jdcdisplay.panel_courant
-    return panel
-
-def create_mocle(nom,panel):
-    panel.nb.selectpage('Mocles')
-    panel.Liste.afficheMot(nom)
-    root.update()
-    label=panel.Liste.dico_labels[nom]
-    label.event_generate("<Enter>")
-    root.event_generate("<KeyPress-Return>")
-    root.update()
-    return jdcdisplay.panel_courant
-
-def change_commandcomm(text,panel):
-    panel.widget_text.setvalue(text)
-    root.update()
-    panel.bouton_val.invoke()
-    return panel
-
-def create_command(nom,panel):
-    panel.nb.selectpage('Commande')
-    root.update()
-    panel.command_entry.setentry(nom)
-    panel.command_entry.component('entry').focus_set()
-    root.event_generate("<Return>")
-    root.update()
-    label=panel.liste_command.dico_labels[nom]
-    label.event_generate("<Enter>")
-    label.event_generate("<Return>")
-    #root.event_generate("<Return>")
-    root.update()
-    panel=jdcdisplay.panel_courant
-    return panel
-
-def create_comment(text,panel):
-    panel.nb.selectpage('Commentaire')
-    panel.ajout_commentaire()
-    root.update()
-    panel=jdcdisplay.panel_courant
-    panel.widget_text.setvalue(text)
-    root.update()
-    panel.bouton_val.invoke()
-    #panel.change_valeur()
-    return panel
-
-def create_param(nom,valeur,panel):
-    panel.nb.selectpage('Commentaire')
-    panel.ajout_parametre()
-    root.update()
-    panel=jdcdisplay.panel_courant
-    if nom:
-        panel.entry_nom.delete(0,"end")
-        panel.entry_nom.insert(0,nom)
-        panel.entry_nom.event_generate("<Return>")
-    panel.entry_val.delete(0,"end")
-    panel.entry_val.insert(0,valeur)
-    panel.entry_val.event_generate("<Return>")
-    panel.bouton_val.invoke()
-    root.update()
-    return panel
-
-def create_formule(nom,args,expr,panel):
-    panel=create_command("FORMULE",panel)
-    panel.entry_nom.delete(0,"end")
-    panel.entry_nom.insert(0,nom)
-    panel.entry_nom.event_generate("<Return>")
-    panel.entry_arg.delete(0,"end")
-    panel.entry_arg.insert(0,args)
-    panel.entry_arg.event_generate("<Return>")
-    panel.entry_exp.delete(0,"end")
-    panel.entry_exp.insert(0,expr)
-    panel.entry_exp.event_generate("<Return>")
-    panel.bouton_val.invoke()
-    root.update()
-    return panel
-
-def nomme_concept(nom,panel):
-    panel.nb.selectpage('Concept')
-    root.update()
-    panel._any.delete(0,"end")
-    panel._any.insert(0,nom)
-    panel.but_ok.invoke()
-    root.update()
-    return jdcdisplay.panel_courant
-
-def select_mcf(nom,ind,node):
-    panel=select_child(nom,node)
-    parent=panel.node
-    parent.expand()
-    parent.select_next(ind)
-    panel=jdcdisplay.panel_courant
-    panel.node.expand()
-    return panel
-
-def select_child(nom,node):
-    """node est le parent dont on veut le fils nom"""
-    for n in node.children:
-        if n.item.nom == nom:
-            n.select()
-            root.update()
-            panel= jdcdisplay.panel_courant
-            panel.node.expand()
-            return panel
-    raise UnKnownNode(nom)
-
-def select_node(node):
-    node.select()
-    node.expand()
-    root.update()
-    return jdcdisplay.panel_courant
-
-def choose_valeur(valeur,panel):
-    panel.Liste_choix.afficheMot(valeur)
-    root.update()
-    label=panel.Liste_choix.dico_labels[valeur]
-    label.event_generate("<Button-1>")
-    label.event_generate("<Return>")
-    root.update()
-
-def choose_sdco(valeur,panel):
-    i = list(panel.listbox.get(0, 'end')).index(valeur)
-    panel.listbox.component("listbox").selection_set(i)
-    panel.listbox.component("listbox").focus_set()
-    panel.listbox.component("listbox").event_generate("<Return>")
-    root.update()
-
-def choose_assd(valeur,panel):
-    i = list(panel.listbox.get(0, 'end')).index(valeur)
-    panel.listbox.component("listbox").selection_set(i)
-    panel.but_val.invoke()
-    root.update()
-
-def set_valeur(valeur,panel):
-    panel.entry.delete(0,"end")
-    panel.entry.insert(0,valeur)
-    panel.entry.event_generate("<Return>")
-    root.update()
-
-def set_sdco(valeur,panel):
-    panel.entry_co.delete(0,"end")
-    panel.entry_co.insert(0,valeur)
-    panel.entry_co.event_generate("<Return>")
-    root.update()
-
-def set_complexe(valeur,panel):
-    panel.entry3.setentry(valeur)
-    panel.entry3.component('entry').focus_set()
-    panel.entry3.event_generate("<Return>")
-    root.update()
-
-def add_valeur_into(valeur,panel):
-    label=panel.Liste_choix.dico_labels[valeur]
-    label.event_generate("<1>")
-    panel.bouton_add.invoke()
-    root.update()
-
-def add_valeur(valeur,panel):
-    panel.entry.delete(0,"end")
-    panel.entry.insert(0,valeur)
-    panel.entry.event_generate("<Return>")
-    root.update()
-
-def valider_valeur(panel):
-    panel.bouton_accepter.invoke()
-    root.update()
-
-def copier_coller():
-    root.event_generate("<Control-c>")
-    root.event_generate("<Control-v>")
-    root.update()
-    return jdcdisplay.panel_courant
-
diff --git a/Tests/testihm/testihm1.py b/Tests/testihm/testihm1.py
deleted file mode 100644 (file)
index 5b79c45..0000000
+++ /dev/null
@@ -1,337 +0,0 @@
-# -*- coding: utf-8 -*-
-# Modules Python
-import os
-import unittest
-import difflib
-import compare
-import sys
-import Tkinter
-
-# Modules Eficas
-import prefs
-from Editeur import eficas_go
-from Editeur import splash
-from Editeur import session
-from Editeur import eficas
-from Editeur import images
-from common import *
-
-version='v8.3'
-
-class TestCase(unittest.TestCase):
-    def setUp(self):
-        self.root = Tkinter.Tk()
-        images.update_cache()
-        # Analyse des arguments de la ligne de commande
-        options=session.parse([])
-        options.cata=version
-        pass
-
-    def tearDown(self):
-        self.root.destroy()
-        init_common(None,None)
-        pass
-
-    def test000(self):
-        root=self.root
-        code="ASTER"
-        splash.init_splash(root,code=code,titre="Lancement d'EFICAS pour %s" %code)
-        splash._splash.configure(text="Chargement d'EFICAS en cours.\n Veuillez patienter ...")
-        app=eficas.EFICAS(root,code=code)
-        j=app.bureau.newJDC()
-        jdcdisplay=app.bureau.JDCDisplay_courant
-        init_common(root,jdcdisplay)
-
-        # commande DEBUT
-        co=j.addentite("DEBUT",0)
-        # commande FIN
-        co=j.addentite("FIN",1)
-
-        jdctree=jdcdisplay.tree.tree.children[0]
-        panel=select_child("DEBUT",jdctree)
-
-        panel=create_param("P1",9.8,panel)
-        panel=create_param("P2",8.8,panel)
-        panel=create_param("P3",7,panel)
-        panel=create_param("P4","[2,3,4]",panel)
-        panel=create_param("P5","P3*P1",panel)
-        panel=create_param(None,"P1-3",panel)
-        panel=create_comment("Pas trouve                shellpanel",panel)
-
-        #commnde LIRE_MAILLAGE
-        panel=create_command("LIRE_MAILLAGE",panel)
-        command=panel.node
-        panel=nomme_concept("MAILLA2",panel)
-        panel=select_node(command)
-        panel=create_mocle("UNITE",panel)
-        panel=set_valeur("P4[1]",panel)
-        command.collapse()
-        panel=select_node(command)
-        #FORMULE
-        panel=create_formule("az","a,z","a+z",panel)
-        #commande AFFE_MODELE
-        panel=create_command("AFFE_MODELE",panel)
-        command=panel.node
-        select_child("MAILLAGE",command)
-        panel=select_node(command)
-        panel=create_mocle("AFFE",panel)
-        parent=panel.node
-        panel=select_child("PHENOMENE",parent)
-        choose_valeur("MECANIQUE",panel)
-        panel=select_child("b_mecanique",parent)
-        panel=select_child("MODELISATION",panel.node)
-        add_valeur_into("3D",panel)
-        add_valeur_into("3D_FLUIDE",panel)
-        valider_valeur(panel)
-        panel=select_node(parent)
-        panel=create_mocle("TOUT",panel)
-        choose_valeur("OUI",panel)
-        panel=select_node(command)
-        panel=nomme_concept("MO",panel)
-        command.collapse()
-        #fin commande AFFE_MODELE
-        panel=copier_coller()
-        command=panel.node
-        panel=create_mocle("AFFE",panel)
-        panel=select_node(command)
-        panel=create_mocle("AFFE",panel)
-        panel=select_mcf("AFFE",1,command)
-        parent=panel.node
-        panel=create_mocle("GROUP_NO",panel)
-        add_valeur("'GNP3','GNP5','GNP6','GNP7','GNP8','GNP9','GNP10','GNP11','GNP12'",panel)
-        valider_valeur(panel)
-        panel=select_child("PHENOMENE",parent)
-        choose_valeur("ACOUSTIQUE",panel)
-        panel=select_child("b_acoustique",parent)
-        panel=select_child("MODELISATION",panel.node)
-        add_valeur_into("PLAN",panel)
-        valider_valeur(panel)
-
-        panel=select_mcf("AFFE",2,command)
-        parent=panel.node
-        panel=create_mocle("GROUP_MA",panel)
-        add_valeur("MASSES",panel)
-        valider_valeur(panel)
-        panel=select_child("PHENOMENE",parent)
-        choose_valeur("THERMIQUE",panel)
-        panel=select_child("b_thermique",parent)
-        panel=select_child("MODELISATION",panel.node)
-        add_valeur_into("COQUE",panel)
-        valider_valeur(panel)
-
-        panel=select_node(command)
-        panel=nomme_concept("AFFE1",panel)
-        command.collapse()
-        #fin commande AFFE_MODELE
-        #commande AFFE_CARA_ELEM
-        panel=create_command("AFFE_CARA_ELEM",panel)
-        command=panel.node
-        panel=select_node(command)
-        panel=create_mocle("POUTRE",panel)
-        parent=panel.node
-        panel=select_child("SECTION",parent)
-        choose_valeur("CERCLE",panel)
-        panel=select_child("b_cercle",parent)
-        panel=select_child("b_constant",panel.node)
-        p=panel.node
-        panel=select_child("CARA",p)
-        add_valeur_into("R",panel)
-        add_valeur_into("EP",panel)
-        valider_valeur(panel)
-        panel=select_child("VALE",p)
-        add_valeur("1,2",panel)
-        valider_valeur(panel)
-        panel=select_node(parent)
-        panel=create_mocle("GROUP_MA",panel)
-        add_valeur("GR1,GR2",panel)
-        valider_valeur(panel)
-        panel=select_child("MODELE",command)
-        choose_assd("MO",panel)
-        panel=select_node(command)
-        panel=nomme_concept("CARA",panel)
-        command.collapse()
-        #fin commande AFFE_CARA_ELEM
-        panel=create_command("DEFI_FONCTION",panel)
-        command=panel.node
-        panel=create_mocle("VALE",panel)
-        add_valeur("5.0,3.0",panel)
-        add_valeur("P4[1],P3",panel)
-        valider_valeur(panel)
-        panel=select_child("NOM_PARA",command)
-        choose_valeur("DX",panel)
-        panel=select_node(command)
-        panel=nomme_concept("F1",panel)
-        command.collapse()
-        #fin DEFI_FONCTION
-        panel=create_command("DEFI_FONCTION",panel)
-        command=panel.node
-        panel=create_mocle("VALE_C",panel)
-        add_valeur("5.0,7.0,9.0",panel)
-        add_valeur("9.0,8.0,7.0",panel)
-        valider_valeur(panel)
-        panel=select_child("NOM_PARA",command)
-        choose_valeur("DRX",panel)
-        panel=select_node(command)
-        panel=nomme_concept("F3",panel)
-        command.collapse()
-        #fin DEFI_FONCTION
-#MATER2=DEFI_MATERIAU(ELAS=_F(E=100000000000.0,
-#                             NU=0.0,),
-#                     ECRO_ASYM_LINE=_F(DC_SIGM_EPSI=0.0,
-#                                       SY_C=200000000.0,
-#                                       DT_SIGM_EPSI=0.0,
-#                                       SY_T=50000000.0,),);
-
-        panel=create_command("DEFI_MATERIAU",panel)
-        command=panel.node
-        panel=create_mocle("ELAS",panel)
-        p=panel.node
-        panel=select_child("E",p)
-        set_valeur("100000000000.0",panel)
-        panel=select_child("NU",p)
-        set_valeur("0.0",panel)
-        panel=select_node(command)
-        panel=create_mocle("ECRO_ASYM_LINE",panel)
-        p=panel.node
-        panel=select_child("DC_SIGM_EPSI",p)
-        set_valeur("0.0",panel)
-        panel=select_child("SY_C",p)
-        set_valeur("200000000.0",panel)
-        panel=select_child("DT_SIGM_EPSI",p)
-        set_valeur("0.0",panel)
-        panel=select_child("SY_T",p)
-        set_valeur("50000000.0",panel)
-        panel=select_node(command)
-        panel=nomme_concept("MATER2",panel)
-        command.collapse()
-        #fin DEFI_MATERIAU
-        #PS1=DEFI_PARA_SENSI(VALE=1.0,);
-        #PS2=DEFI_PARA_SENSI(VALE=1.0,);
-        #PS3=DEFI_PARA_SENSI(VALE=1.0,);
-        panel=create_command("DEFI_PARA_SENSI",panel)
-        command=panel.node
-        panel=select_child("VALE",command)
-        set_valeur("1.0",panel)
-        panel=select_node(command)
-        panel=nomme_concept("PS1",panel)
-        command.collapse()
-        panel=create_command("DEFI_PARA_SENSI",panel)
-        command=panel.node
-        panel=select_child("VALE",command)
-        set_valeur("1.0",panel)
-        panel=select_node(command)
-        panel=nomme_concept("PS2",panel)
-        command.collapse()
-        panel=create_command("DEFI_PARA_SENSI",panel)
-        command=panel.node
-        panel=select_child("VALE",command)
-        set_valeur("1.0",panel)
-        panel=select_node(command)
-        panel=nomme_concept("PS3",panel)
-        command.collapse()
-#CHMAT2=AFFE_MATERIAU(MAILLAGE=MAIL,
-#           AFFE=_F(TOUT='OUI',
-#                    MATER=MATER2,),);
-        panel=create_command("AFFE_MATERIAU",panel)
-        command=panel.node
-        panel=select_child("MAILLAGE",command)
-        panel=select_child("AFFE",command)
-        affe=panel.node
-        panel=create_mocle("TOUT",panel)
-        choose_valeur("OUI",panel)
-        panel=select_child("MATER",affe)
-        add_valeur_into("MATER2",panel)
-        valider_valeur(panel)
-        panel=select_node(command)
-        panel=nomme_concept("CHMAT2",panel)
-        command.collapse()
-#AAAZ=AFFE_CHAR_THER(MODELE=AFFE1,
-#                     TEMP_IMPO=_F(TOUT='OUI',
-#                                   TEMP=0.0,),);
-        panel=create_command("AFFE_CHAR_THER",panel)
-        command=panel.node
-        panel=create_mocle("TEMP_IMPO",panel)
-        temp=panel.node
-        panel=create_mocle("TOUT",panel)
-        choose_valeur("OUI",panel)
-        panel=select_node(temp)
-        panel=create_mocle("TEMP",panel)
-        panel=set_valeur("0.0",panel)
-        panel=select_child("MODELE",command)
-        choose_assd("AFFE1",panel)
-        panel=select_node(command)
-        panel=nomme_concept("AAAZ",panel)
-        command.collapse()
-#TH1=THER_LINEAIRE(MODELE=AFFE1,
-#                  CHAM_MATER=CHMAT2,
-#                  EXCIT=_F(CHARGE=AAAZ,),
-#                  SENSIBILITE=(PS1,PS2,),);
-        panel=create_command("THER_LINEAIRE",panel)
-        command=panel.node
-        panel=select_child("MODELE",command)
-        choose_assd("AFFE1",panel)
-        panel=select_child("CHAM_MATER",command)
-        panel=select_child("EXCIT",command)
-        panel=select_child("CHARGE",panel.node)
-        panel=select_node(command)
-        panel=create_mocle("SENSIBILITE",panel)
-        add_valeur_into("PS1",panel)
-        add_valeur_into("PS2",panel)
-        valider_valeur(panel)
-        panel=select_node(command)
-        panel=nomme_concept("TH1",panel)
-        command.collapse()
-#ACA1=AFFE_CHAR_ACOU(MODELE=AFFE1,
-#                    PRES_IMPO=_F(TOUT='OUI',
-#                                 PRES=('RI',3.0,3.0,),),);
-        panel=create_command("AFFE_CHAR_ACOU",panel)
-        command=panel.node
-        panel=create_mocle("PRES_IMPO",panel)
-        pres=panel.node
-        panel=create_mocle("TOUT",panel)
-        choose_valeur("OUI",panel)
-        panel=select_child("MODELE",command)
-        choose_assd("AFFE1",panel)
-        panel=select_child("PRES",pres)
-        set_complexe("'RI',3.0,3.0",panel)
-        panel=select_node(command)
-        panel=nomme_concept("ACA1",panel)
-        command.collapse()
-#MACRO_MATR_ASSE(MODELE=AFFE1,
-#                NUME_DDL=CO('DDL1'),
-#                MATR_ASSE=_F(MATRICE=CO('MAT1'),
-#                             OPTION='RIGI_THER',),);
-        panel=create_command("MACRO_MATR_ASSE",panel)
-        command=panel.node
-        panel=select_child("NUME_DDL",command)
-        set_sdco("DDL1",panel)
-        panel=select_child("MODELE",command)
-        choose_assd("AFFE1",panel)
-        panel=select_child("MATR_ASSE",command)
-        matr=panel.node
-        panel=select_child("OPTION",matr)
-        choose_valeur("RIGI_THER",panel)
-        panel=select_child("MATRICE",matr)
-        set_sdco("MAT1",panel)
-        panel=select_node(command)
-        command.collapse()
-#MACRO_MATR_ASSE(MODELE=AFFE1,
-#                NUME_DDL=DDL1,
-#                MATR_ASSE=_F(MATRICE=MAT1,
-#                             OPTION='RIGI_THER',),);
-        panel=create_command("MACRO_MATR_ASSE",panel)
-        command=panel.node
-        panel=select_child("NUME_DDL",command)
-        choose_sdco("DDL1",panel)
-        panel=select_child("MODELE",command)
-        choose_assd("AFFE1",panel)
-        panel=select_child("MATR_ASSE",command)
-        matr=panel.node
-        panel=select_child("OPTION",matr)
-        choose_valeur("RIGI_THER",panel)
-        panel=select_child("MATRICE",matr)
-        set_sdco("MAT2",panel)
-        panel=select_node(command)
-        command.collapse()
-
-        assert j.isvalid(),j.report()
diff --git a/Tests/testihm/testihm2.py b/Tests/testihm/testihm2.py
deleted file mode 100644 (file)
index 06c14ec..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-# -*- coding: utf-8 -*-
-# Modules Python
-import os
-import unittest
-import difflib
-import compare
-import sys
-import Tkinter
-
-# Modules Eficas
-import prefs
-from Editeur import eficas_go
-from Editeur import splash
-from Editeur import session
-from Editeur import eficas
-from Editeur import images
-from common import *
-
-
-class TestCase(unittest.TestCase):
-    def setUp(self):
-        self.root = Tkinter.Tk()
-        images.update_cache()
-        # Analyse des arguments de la ligne de commande
-        options=session.parse([])
-        options.cata="v8.3"
-        pass
-
-    def tearDown(self):
-        self.root.destroy()
-        init_common(None,None)
-        pass
-
-    def test000(self):
-        root=self.root
-        code="ASTER"
-        splash.init_splash(root,code=code,titre="Lancement d'EFICAS pour %s" %code)
-        splash._splash.configure(text="Chargement d'EFICAS en cours.\n Veuillez patienter ...")
-        app=eficas.EFICAS(root,code=code)
-        j=app.bureau.newJDC()
-        jdcdisplay=app.bureau.JDCDisplay_courant
-        init_common(root,jdcdisplay)
-
-        # commande DEBUT
-        co=j.addentite("DEBUT",0)
-        # commande FIN
-        co=j.addentite("FIN",1)
-
-        jdctree=jdcdisplay.tree.tree.children[0]
-        panel=select_child("DEBUT",jdctree)
-        panel=create_command("LIRE_MAILLAGE",panel)
-        panel=nomme_concept("MA",panel)
-
-        panel=create_command("AFFE_MODELE",panel)
-        command=panel.node
-        select_child("MAILLAGE",command)
-        panel=select_node(command)
-        panel=create_mocle("AFFE",panel)
-        parent=panel.node
-        panel=select_child("PHENOMENE",parent)
-        choose_valeur("MECANIQUE",panel)
-        panel=select_child("b_mecanique",parent)
-        panel=select_child("MODELISATION",panel.node)
-        add_valeur_into("3D",panel)
-        add_valeur_into("3D_FLUIDE",panel)
-        valider_valeur(panel)
-        panel=select_node(parent)
-        panel=create_mocle("TOUT",panel)
-        choose_valeur("OUI",panel)
-        panel=select_node(command)
-        panel=nomme_concept("MO",panel)
-
-        assert j.isvalid(),j.report()
diff --git a/Tests/testihm/testihm3.py b/Tests/testihm/testihm3.py
deleted file mode 100644 (file)
index 7fa615f..0000000
+++ /dev/null
@@ -1,96 +0,0 @@
-# -*- coding: utf-8 -*-
-# Modules Python
-import os
-import unittest
-import difflib
-import compare
-import sys
-import Tkinter
-
-# Modules Eficas
-import prefs
-from Editeur import eficas_go
-from Editeur import splash
-from Editeur import session
-from Editeur import eficas
-from Editeur import images
-from common import *
-
-
-class TestCase(unittest.TestCase):
-    def setUp(self):
-        self.root = Tkinter.Tk()
-        images.update_cache()
-        # Analyse des arguments de la ligne de commande
-        options=session.parse([])
-        options.cata="petit"
-        pass
-
-    def tearDown(self):
-        self.root.destroy()
-        init_common(None,None)
-        pass
-
-    def test000(self):
-        root=self.root
-        code="ASTER"
-        splash.init_splash(root,code=code,titre="Lancement d'EFICAS pour %s" %code)
-        splash._splash.configure(text="Chargement d'EFICAS en cours.\n Veuillez patienter ...")
-        app=eficas.EFICAS(root,code=code)
-        j=app.bureau.newJDC()
-        jdcdisplay=app.bureau.JDCDisplay_courant
-        init_common(root,jdcdisplay)
-
-        # commande DEBUT
-        co=j.addentite("DEBUT",0)
-        # commande FIN
-        co=j.addentite("FIN",1)
-
-        jdctree=jdcdisplay.tree.tree.children[0]
-        panel=select_child("DEBUT",jdctree)
-        panel=create_command("TESTS_VALID",panel)
-        command=panel.node
-        panel=select_child("LongStr",command)
-        set_valeur("aaa",panel)
-        panel=select_child("ListStr",command)
-        add_valeur("aaa",panel)
-        add_valeur("bbbb,ccc",panel)
-        valider_valeur(panel)
-        panel=select_child("PairVal",command)
-        add_valeur(2,panel)
-        add_valeur("4,6",panel)
-        valider_valeur(panel)
-        panel=select_child("RangeVal",command)
-        set_valeur(4,panel)
-        panel=select_child("CardVal",command)
-        add_valeur("4,6,5,7",panel)
-        valider_valeur(panel)
-        panel=select_child("EnumVal",command)
-        choose_valeur(3,panel)
-        panel=select_child("OrdList",command)
-        add_valeur("4,6,5,7",panel)
-        valider_valeur(panel)
-        panel=select_child("OrdList2",command)
-        add_valeur_into(2,panel)
-        valider_valeur(panel)
-        panel=select_child("TypeVal",command)
-        set_valeur(5,panel)
-        panel=select_child("Compul",command)
-        add_valeur("2",panel)
-        add_valeur("1",panel)
-        valider_valeur(panel)
-        panel=select_child("CompulInto",command)
-        add_valeur_into(2,panel)
-        add_valeur_into(1,panel)
-        valider_valeur(panel)
-        panel=select_child("Norep",command)
-        add_valeur("2",panel)
-        valider_valeur(panel)
-        panel=select_child("NorepInto",command)
-        add_valeur_into(2,panel)
-        valider_valeur(panel)
-
-        panel=select_node(command)
-        panel=nomme_concept("MA",panel)
-
-        assert j.isvalid(),j.report()
diff --git a/Tests/testihm/testihm4.py b/Tests/testihm/testihm4.py
deleted file mode 100644 (file)
index ae7a092..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-# -*- coding: utf-8 -*-
-# Modules Python
-import os
-import unittest
-import difflib
-import compare
-import sys
-import Tkinter
-
-# Modules Eficas
-import prefs
-from Editeur import eficas_go
-from Editeur import splash
-from Editeur import session
-from Editeur import eficas
-from Editeur import images
-from common import *
-
-
-class TestCase(unittest.TestCase):
-    def setUp(self):
-        self.root = Tkinter.Tk()
-        images.update_cache()
-        # Analyse des arguments de la ligne de commande
-        options=session.parse([])
-        options.cata="v8.3"
-        pass
-
-    def tearDown(self):
-        self.root.destroy()
-        init_common(None,None)
-        pass
-
-    def test000(self):
-        root=self.root
-        code="ASTER"
-        splash.init_splash(root,code=code,titre="Lancement d'EFICAS pour %s" %code)
-        splash._splash.configure(text="Chargement d'EFICAS en cours.\n Veuillez patienter ...")
-        app=eficas.EFICAS(root,code=code)
-        file=os.path.join(prefs.INSTALLDIR,"Tests/testelem/az.comm")
-        j=app.bureau.openJDC(file=file)
-        jdcdisplay=app.bureau.JDCDisplay_courant
-        init_common(root,jdcdisplay)
-        jdctree=jdcdisplay.tree.tree.children[0]
-        #commentariser commande MACRO_MATR_ASSE
-        panel=select_child("MACRO_MATR_ASSE",jdctree)
-        panel=comment_command(panel)
-        #decommentariser commande MACRO_MATR_ASSE
-        panel=uncomment_command(panel)
-        #creation commande commentée
-        panel=create_command("LIRE_MAILLAGE",panel)
-        panel=comment_command(panel)
-        panel=change_commandcomm("mm=LIRE_MAILLAGE(INFO=2,UNITE=21)",panel)
-        panel=uncomment_command(panel)
-        panel=select_child("DEFI_FONCTION",jdctree)
-        delete_node(panel)
-
-        assert j.isvalid(),j.report()