From 7ed4666cf182acd5b79d82ed218d2e352cb87232 Mon Sep 17 00:00:00 2001 From: cvs2git Date: Fri, 2 Jun 2006 13:16:38 +0000 Subject: [PATCH] This commit was manufactured by cvs2git to create tag 'V1_10b1'. Sprout from BR_dev_mars_06 2006-06-02 13:16:37 UTC Pascale Noyret '*** empty log message ***' Delete: Tests/testcomm/cabri02a.comm Tests/testcomm/param1.comm Tests/testcomm/pars1.comm Tests/testihm/common.py Tests/testihm/testihm1.py Tests/testihm/testihm2.py Tests/testihm/testihm3.py Tests/testihm/testihm4.py --- Tests/testcomm/cabri02a.comm | 78 -------- Tests/testcomm/param1.comm | 36 ---- Tests/testcomm/pars1.comm | 3 - Tests/testihm/common.py | 201 --------------------- Tests/testihm/testihm1.py | 336 ----------------------------------- Tests/testihm/testihm2.py | 73 -------- Tests/testihm/testihm3.py | 96 ---------- Tests/testihm/testihm4.py | 58 ------ 8 files changed, 881 deletions(-) delete mode 100755 Tests/testcomm/cabri02a.comm delete mode 100644 Tests/testcomm/param1.comm delete mode 100644 Tests/testcomm/pars1.comm delete mode 100644 Tests/testihm/common.py delete mode 100644 Tests/testihm/testihm1.py delete mode 100644 Tests/testihm/testihm2.py delete mode 100644 Tests/testihm/testihm3.py delete mode 100644 Tests/testihm/testihm4.py diff --git a/Tests/testcomm/cabri02a.comm b/Tests/testcomm/cabri02a.comm deleted file mode 100755 index 4c858c6f..00000000 --- a/Tests/testcomm/cabri02a.comm +++ /dev/null @@ -1,78 +0,0 @@ -# MODIF DATE 07/03/2005 AUTEUR CIBHHLV L.VIVAN -# RESPONSABLE MABBAS M.ABBAS -# -# TITRE TEST DE REFERENCE POUR LA MACRO DE CALCUL DE BRIDES CABRI -# CONFIGURATION MANAGEMENT OF EDF VERSION -# ====================================================================== -# COPYRIGHT (C) 1991 - 2003 EDF R&D WWW.CODE-ASTER.ORG -# THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY -# IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY -# THE FREE SOFTWARE FOUNDATION; EITHER VERSION 2 OF THE LICENSE, OR -# (AT YOUR OPTION) ANY LATER VERSION. -# -# THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT -# WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF -# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE GNU -# GENERAL PUBLIC LICENSE FOR MORE DETAILS. -# -# YOU SHOULD HAVE RECEIVED A COPY OF THE GNU GENERAL PUBLIC LICENSE -# ALONG WITH THIS PROGRAM; IF NOT, WRITE TO EDF R&D CODE_ASTER, -# 1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE. -# ====================================================================== - -DEBUT(CODE=_F( NOM = 'CABRI02A',NIV_PUB_WEB='INTRANET')); - -# DEFINITION DES DONNEES MATERIAUX - -# Temperature initiale, assemblage libre de contraintes -TEMP_INI=25.0; - -# Temperature moyenne du transitoire pour calcul de lambda et rhoCp -TEMP_MOY = 170.0; - -INCLUDE_MATERIAU(NOM_AFNOR='Z2CN1810', - TYPE_MODELE='REF', - VARIANTE='A', - TYPE_VALE='NOMI', - NOM_MATER='MA_BRI', - EXTRACTION=_F(COMPOR='THER', - TEMP_EVAL= TEMP_MOY,), - UNITE_LONGUEUR='MM'); - -INCLUDE_MATERIAU(NOM_AFNOR='Z12CN13', - TYPE_MODELE='REF', - VARIANTE='A', - TYPE_VALE='NOMI', - NOM_MATER='MA_ECR', - EXTRACTION=_F(COMPOR='THER', - TEMP_EVAL= TEMP_MOY,), - UNITE_LONGUEUR='MM',); - -INCLUDE_MATERIAU(NOM_AFNOR='Z12CN13', - TYPE_MODELE='REF', - VARIANTE='A', - TYPE_VALE='NOMI', - NOM_MATER='MA_RON', - EXTRACTION=_F(COMPOR='THER', - TEMP_EVAL= TEMP_MOY,), - UNITE_LONGUEUR='MM',); - -INCLUDE_MATERIAU(NOM_AFNOR='Z2CN1810', - TYPE_MODELE='REF', - VARIANTE='A', - TYPE_VALE='NOMI', - NOM_MATER='MA_GOU', - EXTRACTION=_F(COMPOR='THER', - TEMP_EVAL= TEMP_MOY,), - UNITE_LONGUEUR='MM',); - -INCLUDE_MATERIAU(NOM_AFNOR='Z6CND1712', - TYPE_MODELE='REF', - VARIANTE='A', - TYPE_VALE='NOMI', - NOM_MATER='MA_LIM', - EXTRACTION=_F(COMPOR='THER', - TEMP_EVAL= TEMP_MOY,), - UNITE_LONGUEUR='MM',); - -FIN(); diff --git a/Tests/testcomm/param1.comm b/Tests/testcomm/param1.comm deleted file mode 100644 index 79172614..00000000 --- a/Tests/testcomm/param1.comm +++ /dev/null @@ -1,36 +0,0 @@ - -DEBUT() -TEMP_MOY=50. -coef0 = 1.E-3 - -A0=DEFI_FONCTION( NOM_PARA='TEMP', - PROL_DROITE='EXCLU', - PROL_GAUCHE='EXCLU', - VALE=( - 20. ,14.7 *coef0, - 50. ,15.2 *coef0, - 100. ,15.8 *coef0, - 150. ,16.7 *coef0, - 200. ,17.2 *coef0, - 250. ,18. *coef0, - 300. ,18.6 *coef0, - 350. ,19.3 *coef0, - 400. ,20. *coef0, - 450. ,20.5 *coef0, - 500. ,21.1 *coef0, - 550. ,21.7 *coef0, - 600. ,22.2 *coef0, - 650. ,22.7 *coef0, - 700. ,23.2 *coef0, - 750. ,23.7 *coef0, - 800. ,24.1 *coef0, - 950. ,26.67 *coef0, - 1150. ,29.24 *coef0, - 1370. ,32.06 *coef0, - )) - -DEFI_MATERIAU( ELAS=_F( RHO = 1.E08, - NU = 0.3, - E = A0(TEMP_MOY))) - -FIN() diff --git a/Tests/testcomm/pars1.comm b/Tests/testcomm/pars1.comm deleted file mode 100644 index 410fcd81..00000000 --- a/Tests/testcomm/pars1.comm +++ /dev/null @@ -1,3 +0,0 @@ -DEBUT() -a=1 # comment -FIN() diff --git a/Tests/testihm/common.py b/Tests/testihm/common.py deleted file mode 100644 index fbd438a2..00000000 --- a/Tests/testihm/common.py +++ /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("") - 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("") - root.event_generate("") - 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("") - root.update() - label=panel.liste_command.dico_labels[nom] - label.event_generate("") - label.event_generate("") - #root.event_generate("") - 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("") - panel.entry_val.delete(0,"end") - panel.entry_val.insert(0,valeur) - panel.entry_val.event_generate("") - 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("") - panel.entry_arg.delete(0,"end") - panel.entry_arg.insert(0,args) - panel.entry_arg.event_generate("") - panel.entry_exp.delete(0,"end") - panel.entry_exp.insert(0,expr) - panel.entry_exp.event_generate("") - 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("") - label.event_generate("") - 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("") - 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("") - root.update() - -def set_sdco(valeur,panel): - panel.entry_co.delete(0,"end") - panel.entry_co.insert(0,valeur) - panel.entry_co.event_generate("") - root.update() - -def set_complexe(valeur,panel): - panel.entry3.setentry(valeur) - panel.entry3.component('entry').focus_set() - panel.entry3.event_generate("") - 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("") - root.update() - -def valider_valeur(panel): - panel.bouton_accepter.invoke() - root.update() - -def copier_coller(): - root.event_generate("") - root.event_generate("") - root.update() - return jdcdisplay.panel_courant - diff --git a/Tests/testihm/testihm1.py b/Tests/testihm/testihm1.py deleted file mode 100644 index e6650ca8..00000000 --- a/Tests/testihm/testihm1.py +++ /dev/null @@ -1,336 +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.2" - 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 index 71e4d640..00000000 --- a/Tests/testihm/testihm2.py +++ /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.2" - 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 index 7fa615f3..00000000 --- a/Tests/testihm/testihm3.py +++ /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 index 4fdd6193..00000000 --- a/Tests/testihm/testihm4.py +++ /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.2" - 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() -- 2.39.2