seems that removing "people" solves it.
2017-08-17 17:29 GMT+01:00 António Ramos <ramstei...@gmail.com>: > I deleted the line > del web2py_env['__file__'] > > then next error.... > > [image: Imagem inline 1] > > disabling the code i then get to the tests execution > > My simple test is > > def test_index_exists(client): > '''page index exists? > ''' > client.get('people/default/index') > > > i get an error from > gluon.contrib.webclient.py > [image: Imagem inline 2] > > Any ideas? > > Regards > António > > 2017-08-17 14:19 GMT+01:00 António Ramos <ramstei...@gmail.com>: > >> [image: Imagem inline 1] >> >> 2017-08-17 14:18 GMT+01:00 António Ramos <ramstei...@gmail.com>: >> >>> Great >>> Where can i find some discussion on this file ? >>> i get an error at line 149 >>> https://github.com/viniciusban/web2py.test/blob/master/tests >>> /conftest.py#L149 >>> >>> Regards >>> >>> 2017-08-17 12:53 GMT+01:00 José Luis Redrejo <jredr...@gmail.com>: >>> >>>> Antonio, I would not recommend you usint unittest classes, if you read >>>> any modern Python testing book or article, they all recommend using pytest. >>>> I used it in this project https://github.com/jre >>>> drejo/bancal/tree/master/web2py/applications/bancal >>>> just in case it can help you. >>>> >>>> Regards >>>> José L. >>>> >>>> 2017-08-17 13:11 GMT+02:00 António Ramos <ramstei...@gmail.com>: >>>> >>>>> Hello i´m trying to test my web2py app.... >>>>> Never used any testing before, so be patient.. >>>>> >>>>> after reading this >>>>> >>>>> http://www.web2py.com/AlterEgo/default/show/260 >>>>> >>>>> and this >>>>> http://www.web2py.com/AlterEgo/default/show/213 >>>>> >>>>> >>>>> i tried the code but got this error >>>>> >>>>> [image: Imagem inline 1] >>>>> >>>>> i opened globals.py and saw init gets 2 params >>>>> def __init__(self, env): >>>>> >>>>> and the code >>>>> self.request=Request() is missing 1 param.. >>>>> >>>>> any help? >>>>> >>>>> regards >>>>> António >>>>> >>>>> -- >>>>> Resources: >>>>> - http://web2py.com >>>>> - http://web2py.com/book (Documentation) >>>>> - http://github.com/web2py/web2py (Source code) >>>>> - https://code.google.com/p/web2py/issues/list (Report Issues) >>>>> --- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "web2py-users" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to web2py+unsubscr...@googlegroups.com. >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> -- >>>> Resources: >>>> - http://web2py.com >>>> - http://web2py.com/book (Documentation) >>>> - http://github.com/web2py/web2py (Source code) >>>> - https://code.google.com/p/web2py/issues/list (Report Issues) >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "web2py-users" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to web2py+unsubscr...@googlegroups.com. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> >> > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.