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.1.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78a47d8c2689bcd577e3321b37a231b48e187eb33aa9d8304131b238b84ea210 |
|
MD5 | a427e1fda95afe109168a6b822b0c92d |
|
BLAKE2b-256 | 81234533b66a8966ed1c9f216ddf4589a19f9dc01973ff089ef97b551609aaa2 |
Close
Hashes for pytest_odoo-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 816d448d8f2d3068338939f82aed6ec0469d4a7761cc493c4b53f4a3ae078902 |
|
MD5 | 0541de06ba06f617bda9eab6389db4fc |
|
BLAKE2b-256 | e543621802e935f5ecadbb103590856a0d61171a81ba0d4a6c159e1ba0c578f0 |
Close
Hashes for pytest_odoo-0.4.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9aaa038a4a8faa09b68adab149ba62c7ab25be78539237413f511c79f8682891 |
|
MD5 | 2c9ecf06de129cdccef4f39e8f16c86a |
|
BLAKE2b-256 | 2fe69fa825d97367421d1a8bbab1ee043f38a9b2c1957ef5f3ec76a74e52b14c |