Re: [SQLObject] SQL Server and SQLObject... unit testing
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Ian B. <ia...@co...> - 2004-08-20 01:29:13
|
Joseph Kocherhans wrote: > Anyone want to try to help me get some unit tests written for an mssql > connection that uses mxODBC? I have the code written and it seems to > work well, but I don't really understand how SQLObject's unit tests > work, and I'm not going to take the time to figure them out anytime > soon. There's not that much going on. You just have to add a mssqlConnection() function to the top, which should be easy, and then run test.py -dmssql > Too many other things going on. Also, (since you're back Ian ;) is > the addition of something like this someething you'd consider since > mxODBC isn't free? Sure, it can go in. The only issue is that I can't test it. I can't test Sybase either, nor MaxDB (MaxDB simply because it would be too hard to install). > If not, have you considered methods for adding in > support for different databases as external modules? I couldn't figure > out how to get things working without modifying the following: > > sqlobject/converters.py > sqlobject/__init__.py > sqlobject/col.py > setup.py Yes, those all have to be changed now. It would be nice to separate this out more cleanly at some point, but it's not a big priority to me either. > Ideas and comments are welcome. I also have an mxodbcda adapter for > zope3 in the works for use with sqlos. One step at a time though. -- Ian Bicking / ia...@co... / http://blog.ianbicking.org |