Re: [web2py] Re: Testing redirection with py.test

2013-11-05 Thread Vinicius Assef
Thank you so much. I've made some changes in README, too. Take a look. On Tue, Nov 5, 2013 at 12:19 AM, Richard Vézina wrote: > Wrote this to get started : > > # -*- coding: utf8 -*- > > # Create a python virtual environnement > cd > mkdir projects > virtualenv ~/projets/web2py.test > # Access t

Re: [web2py] Re: Testing redirection with py.test

2013-11-04 Thread Vinicius Assef
Richard, in some way, form submission has changed. I don't know exactly in which version, but now you must set _formkey before form submission. I commited some changes. Now you don't need to import run_controller_in, anymore. Just call web2py.run() function. To submit a form, just call web2py.sub

Re: [web2py] Re: Testing redirection with py.test

2013-11-04 Thread Richard Vézina
Wrote this to get started : # -*- coding: utf8 -*- # Create a python virtual environnement cd mkdir projects virtualenv ~/projets/web2py.test # Access the environnement source ~/projects/web2py.test/bin/activate # Now your prompt should look like this : # (web2py.test)username@yourmachine:~$ # Go

Re: [web2py] Re: Testing redirection with py.test

2013-11-04 Thread Richard Vézina
Hello Vinicius, I have been able to run tests, one failed though : === test session starts === platform linux2 -- Python 2.7.4 -- pytest-

Re: [web2py] Re: Testing redirection with py.test

2013-10-31 Thread Vinicius Assef
Yes, that's the way to go. :-) On Thu, Oct 31, 2013 at 2:28 PM, Richard Vézina wrote: > Wait, I didn't read carefully web2py.test more complex than I thought, I > thought it was just an app. > > I will set up a virtualenv. > > Richard > > > On Thu, Oct 31, 2013 at 12:08 PM, Richard Vézina > wrot

Re: [web2py] Re: Testing redirection with py.test

2013-10-31 Thread Richard Vézina
Wait, I didn't read carefully web2py.test more complex than I thought, I thought it was just an app. I will set up a virtualenv. Richard On Thu, Oct 31, 2013 at 12:08 PM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > Ok, I get web2py.test and web2py 2.7.4 (I will test at the same time

Re: [web2py] Re: Testing redirection with py.test

2013-10-31 Thread Richard Vézina
Ok, I get web2py.test and web2py 2.7.4 (I will test at the same time that web2py.test works well with it). Now, https://gist.github.com/viniciusban/7206413 seems just a example... Should I just add it to web2py.test app? Richard On Thu, Oct 31, 2013 at 11:39 AM, Vinicius Assef wrote: > Thank y

Re: [web2py] Re: Testing redirection with py.test

2013-10-31 Thread Vinicius Assef
Thank you, Richard. Basically, I need to isolate web2py.test from my example app and prepare better examples. On Thu, Oct 31, 2013 at 11:59 AM, Richard Vézina wrote: > I would like to help you Vinicius, what could I do? > > Richard > > > On Thu, Oct 31, 2013 at 6:29 AM, Vinicius Assef > wrote

Re: [web2py] Re: Testing redirection with py.test

2013-10-31 Thread Richard Vézina
I would like to help you Vinicius, what could I do? Richard On Thu, Oct 31, 2013 at 6:29 AM, Vinicius Assef wrote: > Good idea. > > I'll make it, but it is based on a previous work [1]. I need improve > docs for it. > > [1] http://github.com/viniciusban/web2py.test > > On Thu, Oct 31, 2013 at 1

Re: [web2py] Re: Testing redirection with py.test

2013-10-31 Thread Vinicius Assef
Good idea. I'll make it, but it is based on a previous work [1]. I need improve docs for it. [1] http://github.com/viniciusban/web2py.test On Thu, Oct 31, 2013 at 12:11 AM, Massimo Di Pierro wrote: > Can you please make a web2py slice about this? > > > On Monday, 28 October 2013 18:13:22 UTC-5,

[web2py] Re: Testing redirection with py.test

2013-10-30 Thread Massimo Di Pierro
Can you please make a web2py slice about this? On Monday, 28 October 2013 18:13:22 UTC-5, viniciusban wrote: > > I created this gist to help people testing controllers that makes > redirection: > https://gist.github.com/viniciusban/7206413 > > Hope it helps someone. > -- Resources: - http://