Re: {Disarmed} Re: {Disarmed} [web2py] Re: pytest and controllers protected with auth

2017-09-12 Thread Mathieu Clabaut
Thanks Antonio. There is a lot to do, unfortunately I really lack time to make this project advance. For now I use a py.test to run tests for https://bback.me web site, but it is too much tightly coupled with the application to be used as an independant pytest module. Hence the work in the

Re: {Disarmed} Re: {Disarmed} [web2py] Re: pytest and controllers protected with auth

2017-09-11 Thread António Ramos
@Mathieu Clabaut I see a lot of space for a Testing tutorial with web2py... Please sit down and do it :) I will buy your book/video especially because there is nothing yet about it... Regards António 2017-08-21 7:56 GMT+01:00 Mathieu Clabaut : > You may have a look at my

Re: {Disarmed} [web2py] Re: pytest and controllers protected with auth

2017-08-31 Thread António Ramos
Hello Carlos please share the app with all of us. I´m very interested. Regards Sem vírus. www.avast.com

{Disarmed} [web2py] Re: pytest and controllers protected with auth

2017-08-31 Thread Carlos Cesar Caballero Díaz
Thank you all you guys, right now I am a little busy with other projects, but I will follow your suggestions, and will post my results. Greetings. El 22/08/17 a las 09:57, Richard Vézina escribió: Will try to wrapp up my stuff... It base on web2py.test, but I add a test launcher and extract

Re: {Disarmed} Re: {Disarmed} [web2py] Re: pytest and controllers protected with auth

2017-08-22 Thread Richard Vézina
Will try to wrapp up my stuff... It base on web2py.test, but I add a test launcher and extract save pytest output into a text file to be consulted after the ending of the test... I do include this file as a test report into my app for the client to see that all tests passed... It works with

Re: {Disarmed} Re: {Disarmed} [web2py] Re: pytest and controllers protected with auth

2017-08-21 Thread Dave S
On Monday, August 21, 2017 at 1:53:51 PM UTC-7, Dave S wrote: > > > > On Friday, August 18, 2017 at 10:35:01 AM UTC-7, Carlos Cesar Caballero > wrote: >> >> I have been facing with that issue too, the error is because there are no >> logged in user, and the redirect is raised, the main problem

Re: {Disarmed} Re: {Disarmed} [web2py] Re: pytest and controllers protected with auth

2017-08-21 Thread Dave S
On Friday, August 18, 2017 at 10:35:01 AM UTC-7, Carlos Cesar Caballero wrote: > > I have been facing with that issue too, the error is because there are no > logged in user, and the redirect is raised, the main problem with this > approach is that I have been not able to correctly log in a

Re: {Disarmed} Re: {Disarmed} [web2py] Re: pytest and controllers protected with auth

2017-08-21 Thread Mathieu Clabaut
You may have a look at my work in progress pytest plugin for web2py : https://github.com/matclab/pytest-web2py.wip There are some example (with registration in https://github.com/matclab/pytest-web2py.wip/blob/master/tests/unit-tests/test_default.py I'm really sorry to not be able to put more

{Disarmed} Re: {Disarmed} [web2py] Re: pytest and controllers protected with auth

2017-08-18 Thread Carlos Cesar Caballero Díaz
I have been facing with that issue too, the error is because there are no logged in user, and the redirect is raised, the main problem with this approach is that I have been not able to correctly log in a user... Being honest, I haven't found a satisfactory way for testing web2py

[web2py] Re: pytest and controllers protected with auth

2017-08-18 Thread António Ramos
anybody help please ? regards 2017-08-18 15:20 GMT+01:00 António Ramos : > this does not work. > > *@auth.requires(True, requires_login= request.is_local)* > def execdal(): > return dict(ret=1) > > > my pytest function > def test_execdal(web2py): > result =

[web2py] Re: pytest and controllers protected with auth

2017-08-18 Thread António Ramos
this does not work. *@auth.requires(True, requires_login= request.is_local)* def execdal(): return dict(ret=1) my pytest function def test_execdal(web2py): result = web2py.run('default', 'execdal', web2py) i get an error about redirected [image: Imagem inline 1] 2017-08-18 12:46