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
File details
Details for the file pytest-odoo-0.4.4.linux-x86_64.tar.gz
.
File metadata
- Download URL: pytest-odoo-0.4.4.linux-x86_64.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.8.1 pkginfo/1.4.1 requests/2.11.1 setuptools/20.7.0 requests-toolbelt/0.7.0 clint/0.5.1 CPython/2.7.12 Linux/4.15.0-34-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c1eb19f4ad9c3d17bd9f5184bb9835004bbb16d2eecac286203753324daafa6 |
|
MD5 | 858a373228987d372aa1a4be4fca5e5a |
|
BLAKE2b-256 | 91d6470e010cc29321ed6dc3880313660a1f8cbab418adcf556542635aead8a9 |
File details
Details for the file pytest_odoo-0.4.4-py3-none-any.whl
.
File metadata
- Download URL: pytest_odoo-0.4.4-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.8.1 pkginfo/1.4.1 requests/2.11.1 setuptools/20.7.0 requests-toolbelt/0.7.0 clint/0.5.1 CPython/2.7.12 Linux/4.15.0-34-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3790374337750202176a1da4a537fbd15a61a2a7a0fd11e6a5a5115f64e59a1c |
|
MD5 | 2f803d56d7964babe2de6b125e0f71c0 |
|
BLAKE2b-256 | 943e694273d2ac7f9f843f368641f8a89279e2a971ff64e6613ddc01830e139a |
File details
Details for the file pytest_odoo-0.4.4-py2-none-any.whl
.
File metadata
- Download URL: pytest_odoo-0.4.4-py2-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.8.1 pkginfo/1.4.1 requests/2.11.1 setuptools/20.7.0 requests-toolbelt/0.7.0 clint/0.5.1 CPython/2.7.12 Linux/4.15.0-34-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df558e2b5ca5c5cbc060dffd38797fe111f0d2869935a74473e25688c44c2088 |
|
MD5 | 060b4f68c02ae9c2e20293cdad71f43f |
|
BLAKE2b-256 | 2ba50feb126ae59ba8066b1474f72c1f4065921216b847af7b899941143d9890 |