On Sep 26, 2007, at 2:09 AM, Jim Musil wrote:

This is probably too late, but I had the same problem.

The problem is that tests are collected and tests/__init__.py runs
before any configuration is loaded and therefore cannot be referenced.
This makes it tough to test your db if you have connection variables
set in your test.ini files. Or sqlalchemy, which is looking for
configuration settings there.

Pylons 0.9.6.1 in addition to including the security fix for private methods, will include a nose plugin that ensures the app is loaded before scanning for doctests. This way doc tests will work fine with your models.

Cheers,
Ben

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to