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.0.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fce2750dd5593a4916bc9ed72b55432f505ee1af9031283cbd2a9f7d7e7d8232 |
|
MD5 | 72c9bab3dd1e2ee36e5ca79c05439156 |
|
BLAKE2b-256 | 018ec3bdcf98f8b6cb1d2c1dd6072b00a11fab9bcbcec4bdd5a93d54781a4bc1 |
Close
Hashes for pytest_odoo-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28edd28435acd735c24d0b66d0d30903119e7d89be314f76e779e316d6acb8b9 |
|
MD5 | 2fc0094015a1c8cd69c8611c3a09985e |
|
BLAKE2b-256 | c726295fa3990742f41fde00c400d35740e94fc9bb76f067091089fc46775bc6 |
Close
Hashes for pytest_odoo-0.4.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07d3c84e557e2f3fa3bb7ef081dc85f5d17a3ecff4aa1ef5f7ef82cb305fc8b3 |
|
MD5 | 7669708019e9d5a4d9ac05bd85c1fc38 |
|
BLAKE2b-256 | 4f62e6ffe00e13aa05e37adbea9c11357847917602e65aec9d82855402a0e00d |