If I create a unittest init/tests/testControllerDefault.py
and run the following command line python web2py.py -S <yourapp> -M -R applications/init/tests/testControllerDefault.py My test is ran. I don't see what is so confusing. -Thadeus On Wed, Feb 24, 2010 at 12:01 PM, Thadeus Burgess <[email protected]> wrote: > consider controllers/default.py > > def index(): > """ >>>> db(db.people.id > 0).count() > '35' > """ > return db(db.people.id > 0).count() > > now when I run > > `python web2py.py -T init/default/index` > > produces my doctest. > > > -Thadeus > > > > > > On Wed, Feb 24, 2010 at 2:28 AM, Jon Romero <[email protected]> wrote: >> So, any idea/hint how to do it? Do we need a patch? >> >> On Feb 23, 10:40 pm, spiffytech <[email protected]> wrote: >>> I'm running the latest version, 1.75.4. >>> >>> On Feb 23, 11:35 am, Thadeus Burgess <[email protected]> wrote: >>> >>> > What version of web2py are you running? >>> >>> > What is the output of ``python web2py.py --help`` >>> >>> > -Thadeus >>> >>> > On Tue, Feb 23, 2010 at 5:23 AM, Jon Romero <[email protected]> wrote: >>> > > ust put a prin "Hello world!" inside the test file, everything >>> > > works ok. So, I suppose that this file tries to load AGAIN the web2py >>> > > environment and there is >>> > > some sort of mi >> >> -- >> You received this message because you are subscribed to the Google Groups >> "web2py-users" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/web2py?hl=en. >> >> > -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.

