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
Built Distributions
Close
Hashes for pytest-odoo-0.4.4.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c1eb19f4ad9c3d17bd9f5184bb9835004bbb16d2eecac286203753324daafa6 |
|
MD5 | 858a373228987d372aa1a4be4fca5e5a |
|
BLAKE2b-256 | 91d6470e010cc29321ed6dc3880313660a1f8cbab418adcf556542635aead8a9 |
Close
Hashes for pytest_odoo-0.4.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3790374337750202176a1da4a537fbd15a61a2a7a0fd11e6a5a5115f64e59a1c |
|
MD5 | 2f803d56d7964babe2de6b125e0f71c0 |
|
BLAKE2b-256 | 943e694273d2ac7f9f843f368641f8a89279e2a971ff64e6613ddc01830e139a |
Close
Hashes for pytest_odoo-0.4.4-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df558e2b5ca5c5cbc060dffd38797fe111f0d2869935a74473e25688c44c2088 |
|
MD5 | 060b4f68c02ae9c2e20293cdad71f43f |
|
BLAKE2b-256 | 2ba50feb126ae59ba8066b1474f72c1f4065921216b847af7b899941143d9890 |