]> git.llucax.com Git - z.facultad/75.52/sercom.git/blob - testtester.py
Cambiar RET_FAIL para que sea signal-friendly.
[z.facultad/75.52/sercom.git] / testtester.py
1 #!/usr/bin/python
2 # vim: set et sw=4 sts=4 encoding=utf-8 foldmethod=marker :
3
4 #{{{ TG config/hacks
5 import turbogears
6 import turbogears.database
7 turbogears.update_config(configfile="dev.cfg", modulename="sercom.config")
8 import turbogears.i18n
9 __builtins__._ = turbogears.i18n.plain_gettext # Nada de gettext lazy
10 #}}}
11
12 from sercom.tester import *
13 from sercom import model
14 from Queue import Queue
15 from os.path import join
16
17 q = Queue()
18
19 q.put(1)
20 #q.put(5)
21 q.put(None)
22
23 tester = Tester(name='pepe', path='var', home=join('home', 'sercom'), queue=q)
24
25 tester.run()
26
27 model.hub.rollback()
28 #model.hub.commit()
29
30 #model.hub.begin()
31 #model.Entrega.get(5).correcta = True
32 #model.hub.rollback()
33