X-Git-Url: https://git.llucax.com/software/sercom.git/blobdiff_plain/de32d0c699858b1502f5f1e793174db8b56f9c1b..b8de3c015410306fb01522f4316b40ae230ded7c:/testtester.py?ds=sidebyside diff --git a/testtester.py b/testtester.py index 4e7f951..b5a40cb 100644 --- a/testtester.py +++ b/testtester.py @@ -1,21 +1,26 @@ #!/usr/bin/python # vim: set et sw=4 sts=4 encoding=utf-8 foldmethod=marker : +#{{{ TG config/hacks import turbogears import turbogears.database turbogears.update_config(configfile="dev.cfg", modulename="sercom.config") +import turbogears.i18n +__builtins__._ = turbogears.i18n.plain_gettext # Nada de gettext lazy +#}}} + from sercom.tester import * from sercom import model from Queue import Queue +from os.path import join -queue = Queue() +q = Queue() -queue.put(1) -#queue.put(5) -queue.put(None) +q.put(1) +#q.put(5) +q.put(None) -tester = Tester(name='pepe', path='var', home=os.path.join('home', 'sercom'), - queue=queue) +tester = Tester(name='pepe', path='var', home=join('home', 'sercom'), queue=q) tester.run() @@ -23,6 +28,6 @@ model.hub.rollback() #model.hub.commit() #model.hub.begin() -#model.Entrega.get(5).correcta = True +#model.Entrega.get(5).exito = True #model.hub.rollback()