skip to navigation
skip to content

pytest-odoo 0.4.0

py.test plugin to run Odoo tests

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 ...
File Type Py Version Uploaded on Size
pytest-odoo-0.4.0.linux-x86_64.tar.gz (md5) Source 2017-11-17 5KB
pytest_odoo-0.4.0-py2-none-any.whl (md5) Python Wheel py2 2017-11-17 5KB
pytest_odoo-0.4.0-py3-none-any.whl (md5) Python Wheel py3 2017-12-04 5KB