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.4.7.tar.gz
(16.9 kB
view hashes)
Built Distributions
Close
Hashes for pytest_odoo-0.4.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4db350d8c8bc412f41bd777055e837d0433912b25fa416bc0e8816420f995e15 |
|
MD5 | defa6edda60a524cf82a9076cc0a3e2f |
|
BLAKE2b-256 | 983987fd9deb4b481bdceab162cff1f3570c638f4b3dc7b24ec46b650b73b342 |
Close
Hashes for pytest_odoo-0.4.7-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30eb5e0387659e9fd06c01d88a8eeec11c8452a866f91d4bbd74062b2b70fdbb |
|
MD5 | f3e4d64f0dfae2a36f348b0f087154ef |
|
BLAKE2b-256 | 3e644df3a6e12c467120b98a8e64bd8bd67d30bfbcf2df05859c009586652582 |