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

2014-03-21 Thread Mandar Vaze
All, On Monday, December 17, 2012 10:11:13 PM UTC+5:30, Ian W. Scott wrote: After a bit of hacking I put together a working test runner for pytest. Here it is: Run this app's tests via py.test place this file in applications/appname/bin/ run with: python your web2py dir/web2py.py -S

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

2014-03-06 Thread Mandar Vaze
Ian The following is still useful after more than a year. Thanks !! I made some modifications - mostly my specific paths before calling run_pytest, and my run_test.py is in scripts folder rather than bin. I'm getting an error : NameError: name 'db' is not defined I'm running it as : python

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

2012-12-17 Thread Ian W. Scott
After a bit of hacking I put together a working test runner for pytest. Here it is: Run this app's tests via py.test place this file in applications/appname/bin/ run with: python your web2py dir/web2py.py -S paideia -M -R applications/appname/bin/runtest.py import os import sys import

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

2012-12-17 Thread Vinicius Assef
Nice, Ian. I'm overworking these days. I'll touch this next week. On Mon, Dec 17, 2012 at 2:41 PM, Ian W. Scott scotti...@gmail.com wrote: After a bit of hacking I put together a working test runner for pytest. Here it is: Run this app's tests via py.test place this file in