I am trying to make a Data Class for my app with a .test method. I am hoping
to
be able to do this:
uLoopDO1=uLoopDO()
uLoopDO1.test()
.test will contain the connection parameters (host, user...) for running a
test,
it will connect, execute a simple query, display some simple results.
class uLoopDO(dabo.db.dSomething):
def test():
self.connection = self.something(DbType='mysql',
Host='vaio',
User='testUserA',
PlainTextPassword='pw' )
self.execute('select * from information_schema.SCHEMA_PRIVILEGES')
dbs=dbCur.fetchall()
print dbs[0]
What should I be subclassing?
I thought I might be able to find the answer in test_dCursorMixin.py but that
looks like the tests are setup outside the class:
con = dabo.db.dConnection(DbType="MySQL", User="dabo_unittest",
password="foo", Database="dabo_unittest",
Host="local")
self.cur = con.getDaboCursor()
self.temp_table_name = "unittest%s"...
super(Test_dCursorMixin_mysql, self).setUp()
Not sure if this is imposed by the test framework or dabo or just the way Paul?
felt like writing the test.
Carl K
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]