When I run nosetests on a project that doesn't use inheritance, my unit
tests run.
When I so much as add this line to my model.py:
from sqlobject.inheritance import InheritableSQLObject
nosetests shits the bed:
Traceback (most recent call last):
File
"/usr/local/lib/python2.4/site-packages/TurboGears-0.9a1-py2.4.egg/turbogears/testutil.py",
line 73, in setUp
item.createTable(ifNotExists=True)
File
"/usr/local/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1588-py2.4.egg/sqlobject/main.py",
line 1319, in createTable
conn = connection or cls._connection
File
"/usr/local/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1588-py2.4.egg/sqlobject/dbconnection.py",
line 881, in __get__
return self.getConnection()
File
"/usr/local/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1588-py2.4.egg/sqlobject/dbconnection.py",
line 893, in getConnection
raise AttributeError(
AttributeError: No connection has been defined for this thread or
process
I'm not even using inheritance in the model (yet); I've just imported
InheritableSQLObject.
Methinks this is bug. Anyone know of a workaround?
Roger
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---