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.3.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d434ba88bd5b47ccd17d8a1dabf9c6deaba5a5c90d92f8476a2e48c2a6b5b330 |
|
MD5 | 799994c0163aae6c0d71888b3dec929c |
|
BLAKE2b-256 | 4f626c2154008377197ec154dd44e9d3514db5d67c6cf62f979812e517dc77e3 |
Close
Hashes for pytest_odoo-0.4.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0366127c135344c8dfd86e017124c3f20bab108474270f4428fec466789fa25b |
|
MD5 | 5ded2eb6e6a285e5f5774a51db779255 |
|
BLAKE2b-256 | 766090f716e7f2903720319d902710af3b7d4640877180db902c1c9edf53156d |
Close
Hashes for pytest_odoo-0.4.3-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abac951d64d0a2d92f495aaeeb51016206435da84ef90e432953a1bb1fd6429c |
|
MD5 | 03d59758564fdc2cf1e8ef32effe96a1 |
|
BLAKE2b-256 | 0f9e9c2ee525bdae392ef3f06bc1da854bb01d4602b49af3aa0d5838ef3a090f |