Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Aditya102010 opened this issue Feb 11, 2025 · 2 comments

Comments

@Aditya102010
Copy link

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 Aditya102010 changed the title The tests directory is having older that has dependencies on files that do not exist The tests directory is having older tests that have dependencies on modules that do not exist Feb 11, 2025
@keitherskine
Copy link
Collaborator

@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.

@Aditya102010
Copy link
Author

Aditya102010 commented Feb 13, 2025

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants