Re: [web2py] importing modules to test file using pytest

2012-12-05 Thread Vinicius Assef
Sure you'll see it. I'll put it in a github repo. On Wed, Dec 5, 2012 at 7:14 PM, monotasker wrote: > That would be great. I'd really appreciate seeing the code whenever you have > a working version. I'm also interested in figuring out why the module > imports aren't working in my existing scr

Re: [web2py] importing modules to test file using pytest

2012-12-05 Thread monotasker
That would be great. I'd really appreciate seeing the code whenever you have a working version. I'm also interested in figuring out why the module imports aren't working in my existing script, since there's obviously something I'm missing about running files in a web2py environment. Best, Ian

Re: [web2py] importing modules to test file using pytest

2012-12-05 Thread Vinicius Assef
Hi monotasker. I'm starting to run something like that and I'm giving gluon/contrib/webclient.py a try. I intend to prepare an environment to allow running tests using both unittest2 or pytest. I think next week I'll already have a decently running environment. -- Vinicius Assef On Wed, Dec

[web2py] importing modules to test file using pytest

2012-12-05 Thread monotasker
I'm trying to use pytest (instead of unittest) to do unit testing for a web2py app. I've written a script (attached: runtest.py) to launch py.test, which then finds and executes my test files. I run this launcher script in a web2py environment like this: python ~/web/web2py/web2py.py -S pai