My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
Tests  
How to run tests
Updated Jul 30, 2010 by floydoph...@gmail.com

How to Run Tests

PyMySQL is designed to be a DB-API 2.0 compliant driver as well as compliant with all of MySQLdb's quirks. Therefore, we test against our in-house regression tests, MySQLdb's unit tests as well as the unit tests of some other prominent projects that use it (Django and SQLAlchemy, the former is not included because it is so big).

We could not include these third party tests with the distribution due to licensing, however, you can check them out from the vendor branch to run them.

To run the in-house tests, simply do python -m pymysql.tests.init.

To run the MySQLdb tests, go to the vendor branch and run init.py under test_MySQLdb.

To run the SQLAlchemy tests, see README.unittest under the vendor/sqlalchemy branch.


Sign in to add a comment
Powered by Google Project Hosting