Re: [web2py] Re: How to simulate form submission in doctest

2011-03-12 Thread howesc
i think you'll need to be able to set some of the hidden field parameters. i have not tried it myself though.

Re: [web2py] Re: How to simulate form submission in doctest

2011-03-12 Thread David Bain
Hmm, I'll need to look into this some more. On Sat, Mar 12, 2011 at 3:04 AM, pbreit wrote: > Wow, I'm not sure how or if you are going to be able to run a doctest on a > form in a controller. > > Running it in a web2py shell only returns the form: > > In [1] : import os > In [2] : execfile(os.pa

[web2py] Re: How to simulate form submission in doctest

2011-03-12 Thread pbreit
Wow, I'm not sure how or if you are going to be able to run a doctest on a form in a controller. Running it in a web2py shell only returns the form: In [1] : import os In [2] : execfile(os.path.join(request.folder,'controllers/default.py')) In [3] : print do_nothing() {'form': } I cleaned up yo