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 > > def test_index_exists(cli

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 gluon.

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 GMT+01:00 José Luis Redrej

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, if you read any > mod

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. 2017