I found a solution, I could make it more pythonic, but I have such a
simple model that I just haven't got around to it yet... (nor do I yet
know how to introspect modules to get all the classes of a specific
type)...
class DBTestCase(unittest.TestCase):
def setUp(self):
unittest.TestCase.setUp(self)
database.set_db_uri('sqlite:///:memory:')
for obj in [model.table1, model.table2,
model.table3]:
obj.createTable()
#obj.createIndexes()
def tearDown(self):
for obj in [model.table1, model.table2,
model.table3]:
obj.dropTable()
unittest.TestCase.tearDown(self)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---