Running tests

You can test your installation by running the test suite.

  1. python runtests.py

You can test specific features or specific database drivers using theruntests.py script. To view the available test runner options, use:

  1. python runtests.py --help

Note

To run tests against Postgres or MySQL you need to create a database named“peewee_test”. To test the Postgres extension module, you will also want toinstall the HStore extension in the postgres test database:

  1. -- install the hstore extension on the peewee_test postgres db.
  2. CREATE EXTENSION hstore;