py.test plugin to run Odoo tests
Project description
pytest plugin to run Odoo tests
Usage
install via:
pip install pytest-odoo
usage:
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.
--odoo-config: path of the odoo.cfg file to use.
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 ...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytest-odoo-0.6.1.tar.gz
(16.9 kB
view hashes)
Built Distribution
Close
Hashes for pytest_odoo-0.6.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 601bff4c23641a669a35e9b2c9f92c94a393609f4e85a048b90e6c570e7a7457 |
|
MD5 | df8f22f576d9a9508a55531632242834 |
|
BLAKE2b-256 | a204b9d12152145a92a8ef2765816452ea34f3caa409c877111494a7eb22c960 |