Re: [web2py] unit testing newbiew ... and error...

2017-08-17 Thread António Ramos
seems that removing "people" solves it. 2017-08-17 17:29 GMT+01:00 António Ramos : > 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 > >

Re: [web2py] unit testing newbiew ... and error...

2017-08-17 Thread António Ramos
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

Re: [web2py] unit testing newbiew ... and error...

2017-08-17 Thread António Ramos
[image: Imagem inline 1] 2017-08-17 14:18 GMT+01:00 António Ramos : > 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

Re: [web2py] unit testing newbiew ... and error...

2017-08-17 Thread António Ramos
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 : > Antonio, I would not recommend you usint unittest classes,

Re: [web2py] unit testing newbiew ... and error...

2017-08-17 Thread José Luis Redrejo
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/jredrejo/bancal/tree/master/web2py/applications/bancal just in case it can help you. Regards José L.

[web2py] unit testing newbiew ... and error...

2017-08-17 Thread António Ramos
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