Skip to content
pytest plugin to run Odoo tests
Branch: master
Clone or download
Latest commit 985cb08 Nov 9, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis.yml Build universal wheels Nov 9, 2018
LICENSE Import with the openerp.addons namespace Dec 8, 2016
README.rst Add --odoo-database and --odoo-log-level options Nov 16, 2017
setup.cfg Deploy to pypi from git tag by travis Nov 9, 2018



pytest plugin to run Odoo tests


install via:

pip install pytest-odoo


pytest -s --odoo-database=test --odoo-log-level=debug_sql

The custom options are:

  • --odoo-database: name of the database to test
  • --odoo-log-level: log level as expected by odoo. As time of writing: info, debug_rpc, warn, test, critical, debug_sql, error, debug, debug_rpc_answer. The default is critical to have a clean output.

Alternatively, you can use the OPENERP_SERVER environment variable using an odoo configuration file, containing at least the database option with the name of the database to test:

export OPENERP_SERVER=/path/to/odoo/config.cfg
pytest ...
You can’t perform that action at this time.