I'm attempting to unit test a method by following
http://web2py.com/AlterEgo/default/show/260. If I run the query inside
the console, it works fine. If I run it in my unit tests, it returns
no results (NOTE that there are no errors in the unit test).
Here is the query:
rows = db(db.flavor.id>0).select().\
find(lambda row:row.name.startswith(term))
WORKS (17 results): python web2py.py -S myapp -M
DOES NOT WORK (0 results): python web2py.py -S myapp -M -R
applications/myapp/tests/test_search.py
Thanks,
Matthew