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.

  • --odoo-config: path of the odoo.cfg file to use.

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.6.1.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

pytest_odoo-0.6.1-py2.py3-none-any.whl (16.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pytest-odoo-0.6.1.tar.gz.

File metadata

  • Download URL: pytest-odoo-0.6.1.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.7

File hashes

Hashes for pytest-odoo-0.6.1.tar.gz
Algorithm Hash digest
SHA256 7be0d5cb0a307cd70423e9ae88c893f3439f594e940461cedfef2f57df939c28
MD5 ba9799c7d645aad5ccf6878198ae4494
BLAKE2b-256 7ff4eb0db3650ade96a7dd2d0ed921e2c69d4e5efd2afb113c1c1d6ff697d9f9

See more details on using hashes here.

File details

Details for the file pytest_odoo-0.6.1-py2.py3-none-any.whl.

File metadata

  • Download URL: pytest_odoo-0.6.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.7

File hashes

Hashes for pytest_odoo-0.6.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 601bff4c23641a669a35e9b2c9f92c94a393609f4e85a048b90e6c570e7a7457
MD5 df8f22f576d9a9508a55531632242834
BLAKE2b-256 a204b9d12152145a92a8ef2765816452ea34f3caa409c877111494a7eb22c960

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