web2py/web2py — pull request #183 by niphlod (2013-08-25 16:45:46+00:00)
Title: added boilerplate to be able to run tests from anywhere

Before sys.path was not the same as the default configuration if tests were run from different places as getcwd().
Now instead they are consistently as the normal web2py environment. Everyone creating new tests files from those stubs will incur in no issues.

Added test for validate_and_insert() too.