1 # -*- coding: utf-8 -*-
12 from Editeur import eficas_go
13 from Editeur import splash
14 from Editeur import session
15 from Editeur import eficas
16 from Editeur import images
20 class TestCase(unittest.TestCase):
22 self.root = Tkinter.Tk()
24 # Analyse des arguments de la ligne de commande
25 options=session.parse([])
31 init_common(None,None)
37 splash.init_splash(root,code=code,titre="Lancement d'EFICAS pour %s" %code)
38 splash._splash.configure(text="Chargement d'EFICAS en cours.\n Veuillez patienter ...")
39 app=eficas.EFICAS(root,code=code)
41 jdcdisplay=app.bureau.JDCDisplay_courant
42 init_common(root,jdcdisplay)
45 co=j.addentite("DEBUT",0)
47 co=j.addentite("FIN",1)
49 jdctree=jdcdisplay.tree.tree.children[0]
50 panel=select_child("DEBUT",jdctree)
51 panel=create_command("TESTS_VALID",panel)
53 panel=select_child("LongStr",command)
54 set_valeur("aaa",panel)
55 panel=select_child("ListStr",command)
56 add_valeur("aaa",panel)
57 add_valeur("bbbb,ccc",panel)
59 panel=select_child("PairVal",command)
61 add_valeur("4,6",panel)
63 panel=select_child("RangeVal",command)
65 panel=select_child("CardVal",command)
66 add_valeur("4,6,5,7",panel)
68 panel=select_child("EnumVal",command)
69 choose_valeur(3,panel)
70 panel=select_child("OrdList",command)
71 add_valeur("4,6,5,7",panel)
73 panel=select_child("OrdList2",command)
74 add_valeur_into(2,panel)
76 panel=select_child("TypeVal",command)
78 panel=select_child("Compul",command)
82 panel=select_child("CompulInto",command)
83 add_valeur_into(2,panel)
84 add_valeur_into(1,panel)
86 panel=select_child("Norep",command)
89 panel=select_child("NorepInto",command)
90 add_valeur_into(2,panel)
93 panel=select_node(command)
94 panel=nomme_concept("MA",panel)
96 assert j.isvalid(),j.report()