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 applications.
Greetings.
--
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+un...@googlegroups.com.
For more options, visit MailScanner ha detectado un intento de fraude en la siguiente página web "groups.google.com". No confíe en esta página web: MailScanner ha detectado un intento de fraude en la siguiente p�gina web "groups.google.com". No conf�e en esta p�gina web: https://groups.google.com/d/optout.
For more options, visit https://groups.google.com/d/optout.
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 applications.
Greetings.
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 user...
Being honest, I haven't found a satisfactory way for testing web2py applications.
Greetings.
If you're using the webclient tool, as in the book examples, there is provision for logging in clients. In one of his posts answering a test question, Massimo recommends putting the test code in modules rather than controllers to avoid exposing the test interface.
<URL:http://web2py.com/books/default/chapter/29/14/other-recipes>
(no anchor on the subheader)
--
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+unsubscribe@googlegroups.com.
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.
--
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.
For more options, visit https://groups.google.com/d/optout.
|
I'm really sorry to not be able to put more time in this project now (some issues are open to identify what is missing).You may have a look at my work in progress pytest plugin for web2py : https://github.com/matclab/pytest-web2py.wipThere are some example (with registration in https://github.com/matclab/pytest-web2py.wip/blob/master/tests/unit-tests/test_default.py-Mathieu
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe@googlegroups.com.
--
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+unsubscribe@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+unsubscribe@googlegroups.com.
@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 <mat...@clabaut.net>:
I'm really sorry to not be able to put more time in this project now (some issues are open to identify what is missing).You may have a look at my work in progress pytest plugin for web2py : https://github.com/matclab/pytest-web2py.wipThere are some example (with registration in https://github.com/matclab/pytest-web2py.wip/blob/master/tests/unit-tests/test_default.py-Mathieu
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
--
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+un...@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+un...@googlegroups.com.
--
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+un...@googlegroups.com.