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.5.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d54fcfd52c13cc1a37d7349796b0feadd28c3dacafad0c2b013138f8fa3e1998 |
|
MD5 | c1908e17281c023db43f7c1d7b7ff2f5 |
|
BLAKE2b-256 | d5486e83bb073a40c974a0966e9e21ce91116b179a3eb2cad9ff2c710061328a |
Close
Hashes for pytest_odoo-0.4.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f51a31493028e28a029ca23a1cdac898d1e498cb12ee52d7baad31d7f3bd7e5 |
|
MD5 | 1db8e6d704a7ab93a5a7a9f60291741c |
|
BLAKE2b-256 | 60db1bd720d4e9b4644b98ccf9e7c4d075fdcee0e74c600a39cd99f1d2070156 |
Close
Hashes for pytest_odoo-0.4.5-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aebfb2b0122fb16dfd6894e61e91b2345c6e61eb4b4e9cb2f6bfaaad9b9c0559 |
|
MD5 | d40747b2b8e62b9e7c8742eacef9ec12 |
|
BLAKE2b-256 | 915484636fe1453e6481cff842a8b4b07d4f4147940efff28b5d0b94809b199e |