Skip to main content

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


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.2.linux-x86_64.tar.gz (5.9 kB view details)

Uploaded Source

Built Distributions

pytest_odoo-0.4.2-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

pytest_odoo-0.4.2-py2-none-any.whl (5.9 kB view details)

Uploaded Python 2

File details

Details for the file pytest-odoo-0.4.2.linux-x86_64.tar.gz.

File metadata

File hashes

Hashes for pytest-odoo-0.4.2.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 32e55edd6875035252a7e61b0471ad79cf9afbf6cff93bca7ffe5b0a08e5e9c8
MD5 c197e876b14a18c0ec6437acdeff42d5
BLAKE2b-256 9d9a51fea7ff311d3a6dc0505b534b4ff6df76bb1728ac725904df78b24a84e0

See more details on using hashes here.

File details

Details for the file pytest_odoo-0.4.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_odoo-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2282f57fb14695fdb18a34fdeb8042ea02cac5fe288ad03a10ba65a364f331d7
MD5 1a4921dbd5e33994d9d68a5cec995219
BLAKE2b-256 4c5009ee59b12c832a4fa29f487e77125815b03afbb52e8682576d3c58706ddc

See more details on using hashes here.

File details

Details for the file pytest_odoo-0.4.2-py2-none-any.whl.

File metadata

File hashes

Hashes for pytest_odoo-0.4.2-py2-none-any.whl
Algorithm Hash digest
SHA256 8f9b7c0c5d8718d46e15fd8872684bfb61e641a19632b3b5f5d74f535be5f17e
MD5 ceedd66b9253ea2a84e57a5195454ca7
BLAKE2b-256 c740a3368e397c2af3681b973d645fd31a996c688262df6d8f5cdf3429c83cbc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page