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.
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.5.0.tar.gz
(17.0 kB
view hashes)
Built Distribution
Close
Hashes for pytest_odoo-0.5.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac329fe5c195f1e1d6275943ff7eafc1c8528f3e28e743a2102601c4a87c7e68 |
|
MD5 | 308f8e010cc75c055c658f180286f2c4 |
|
BLAKE2b-256 | fe25b79072442fab155611578fc94395ac50d5b67c8c601bf98922497eefe64a |