Re: [web2py] testing applications
You can use the webcliente and after construct the web2pyenv with data of webclient if this is possible.. -- 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.
Re: [web2py] testing applications
there is an example in the book about that, logged in user access the page that requires login ref : http://web2py.com/books/default/chapter/29/14/other-recipes#Functional-testing best regards, stifan -- 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.
Re: [web2py] testing applications
Hi, there is no problem using the webclient approach, the problem is when I am using the web2pyenv approach ( simulating web2py shell environment), I find it very useful in some cases, but I can't use it with pages that requires registered users. Greetings. El 15/04/17 a las 20:54, Marlysson Silva escribió: You tried use the client web programatically of web2py to submit a post to users/login using your credentials? -- 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.
Re: [web2py] testing applications
You tried use the client web programatically of web2py to submit a post to users/login using your credentials? -- 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.
Re: [web2py] testing applications
Hi, it looks great. I am testing it and I'm getting issues when I try to test a controller who uses a "@auth.requires_login()" decorator using the web2pyenv approach. I am trying to log in a user using auth.login_bare(), but it always throws a 303 redirect. Any suggestion? Greetings. El 14/04/17 a las 18:58, Marlysson Silva escribió: Have this example: https://github.com/viniciusban/web2py.test -- 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.