p a écrit :
Okay, so I have unit tests that test my model(s). When I run them
directly, I use the following line to set up a connection:
sqlhub.processConnection = connectionForURI("myurihere")
When I try and use Testgears, it won't connect. I get this error:
Traceback (most recent call last):
(snip)
"/usr/local/lib/python2.4/site-packages/TurboGears-0.8a4-py2.4.egg/turbogears/database.py",
line 36, in getConnection
raise AttributeError(
AttributeError: No connection has been defined for this thread or
process
What the heck is the problem????????
Is you connection string correctly set in your cfg file ? (dev.cfg
and/or prod.cfg, in the projects dir)
My 2 cents...