Functional Tests and Plone 3.0
Derek Richardson
derek.richardson at gatech.edu
Tue Jul 17 15:24:50 UTC 2007
Martin Aspeli wrote:
> The ploneboard tests (and others) have some code which inspect the
> latest entry in error_log on error. That's quite useful, and gives you a
> plain-text traceback, not the full Plone HTML.
>
> Martin
I apologize for being dense, but I can't find this code. I've grepped and read
manually and all I see is the following line in the doctests:
>>> self.portal.error_log._ignored_exceptions = ()
Adding this line does nothing for my tests, AFAICT. I've tried running my tests
and reading the log file, but, no surprise, the tests don't seem to have a
log-writing side-effect. The line above, I think, says all exceptions should go
to the log, but I can't find a way to inspect the log manually or programmatically.
I'd have thought to find the target code in PloneboardTestCase.py, but all I see
there is code for the session.
In short, if you have the time to point me to the code segment of which you
spoke, I'd be most grateful.
Thanks,
Derek
More information about the Product-Developers
mailing list