pyodbc icon indicating copy to clipboard operation
pyodbc copied to clipboard

The tests directory is having older tests that have dependencies on modules that do not exist

Open Aditya102010 opened this issue 9 months ago • 2 comments

sqlitetests.py is having statement from testutils import *. There is no testutils module to import. Earlier in the releases like 4.0.35 the module was present.

Aditya102010 avatar Feb 11 '25 05:02 Aditya102010

@Aditya102010 Yes, unfortunately the sqlitetests.py module is not currently up-to-date, which is why it's in the "old" folder "tests\old" along with other somewhat neglected unit test modules from pyodbc v4. There are no current plans for porting it to work with pyodbc v5, but thank you for reminding me of this.

keitherskine avatar Feb 13 '25 03:02 keitherskine

@keitherskine I saw the other important tests namely mysql_test postgresql and sqlserver have been ported to v5. Can someone other than contributors through a pull request port the other relevant/significant tests to pytest for pyodbc v5 and future versions. If so then I'll be happy to take up this job. I very actively work with databases and have decent knowledge of pyodbc.

Aditya102010 avatar Feb 13 '25 09:02 Aditya102010