Jody McIntyre
unread,Apr 29, 2011, 3:20:25 PM4/29/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django developers
Now that Django has logging support using the Python logging module,
it would be nice if the unit testing framework included the ability to
capture logs, similarly to the mail.outbox functionality.
I am aware of the log_capture decorator in the testfixtures package,
and we are using it for some tests. Unfortunately, it doesn't
correctly capture anything that's been changed by a filter, since it
installs itself as a handler without preserving filters attached to
existing handlers. It would be great if Django could do better!
Cheers,
Jody