I get 71 passed , and 100 failed when I run py.test on them.
I have used
export TESTDB=mysql://sqlobjecttest:[EMAIL PROTECTED]/sqlobjecttest
before running py.test from the tests directory
(yes the username, password and dbname are all the same)
I can log into mysql using that account and create tables, insert,
delete , etc.
Which suggest it just cant connect,
There are no tables, etc created after running the tests.
Can anyone tell me where I am going wrong?
The fails look like
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _
def createTable(self, soClass):
createSql, constraints = self.createTableSQL(soClass)
> self.query(createSql)
[/home/sean/SQLObject/sqlobject/dbconnection.py:546]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _
def query(self, s):
> return self._runWithConnection(self._query, s)
[/home/sean/SQLObject/sqlobject/dbconnection.py:315]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _
def _runWithConnection(self, meth, *args):
conn = self.getConnection()
try:
> val = meth(conn, *args)
[/home/sean/SQLObject/sqlobject/dbconnection.py:229]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _
def _query(self, conn, s):
if self.debug:
self.printDebug(conn, s, 'Query')
> self._executeRetry(conn, conn.cursor(), s)
[/home/sean/SQLObject/sqlobject/dbconnection.py:312]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _
def _executeRetry(self, conn, cursor, query):
if self.debug:
self.printDebug(conn, query, 'QueryR')
E return cursor.execute(query)
> OperationalError: SQL logic error or missing database
[/home/sean/SQLObject/sqlobject/dbconnection.py:307]
Thanks
Sean
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss