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.0.tar.gz
(17.0 kB
view hashes)
Built Distribution
Close
Hashes for pytest_odoo-0.6.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ba04f13e9fe4b1bbbc9d3ef801cdddbfa6ba62230a80227e8f100122be91882 |
|
MD5 | 37dc8fdd51d561fd31a9d055f1c6dadb |
|
BLAKE2b-256 | 2ae76fed26609babda67ed5c50702fb34c9a002a686b00105bcc78088e67f51a |