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

Uploaded Source

Built Distribution

pytest_odoo-0.6.0-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.0.tar.gz.

File metadata

  • Download URL: pytest-odoo-0.6.0.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.5.6

File hashes

Hashes for pytest-odoo-0.6.0.tar.gz
Algorithm Hash digest
SHA256 3656e063dffc66363cd3faa86fac4a83f5c688d66789e91dfaec854d9f2dc63f
MD5 68c3b366dc32441b91c5c8760ffb1cb1
BLAKE2b-256 d5b5c98af37b6c141f9d22ebec3a7935b12291a4faa18ee5cdd907ffff8704cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytest_odoo-0.6.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.5.6

File hashes

Hashes for pytest_odoo-0.6.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4ba04f13e9fe4b1bbbc9d3ef801cdddbfa6ba62230a80227e8f100122be91882
MD5 37dc8fdd51d561fd31a9d055f1c6dadb
BLAKE2b-256 2ae76fed26609babda67ed5c50702fb34c9a002a686b00105bcc78088e67f51a

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