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

Uploaded Source

Built Distributions

pytest_odoo-0.4.5-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

pytest_odoo-0.4.5-py2-none-any.whl (6.1 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: pytest-odoo-0.4.5.linux-x86_64.tar.gz
  • Upload date:
  • Size: 6.3 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-38-generic

File hashes

Hashes for pytest-odoo-0.4.5.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 d54fcfd52c13cc1a37d7349796b0feadd28c3dacafad0c2b013138f8fa3e1998
MD5 c1908e17281c023db43f7c1d7b7ff2f5
BLAKE2b-256 d5486e83bb073a40c974a0966e9e21ce91116b179a3eb2cad9ff2c710061328a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytest_odoo-0.4.5-py3-none-any.whl
  • Upload date:
  • Size: 6.1 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-38-generic

File hashes

Hashes for pytest_odoo-0.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1f51a31493028e28a029ca23a1cdac898d1e498cb12ee52d7baad31d7f3bd7e5
MD5 1db8e6d704a7ab93a5a7a9f60291741c
BLAKE2b-256 60db1bd720d4e9b4644b98ccf9e7c4d075fdcee0e74c600a39cd99f1d2070156

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytest_odoo-0.4.5-py2-none-any.whl
  • Upload date:
  • Size: 6.1 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-38-generic

File hashes

Hashes for pytest_odoo-0.4.5-py2-none-any.whl
Algorithm Hash digest
SHA256 aebfb2b0122fb16dfd6894e61e91b2345c6e61eb4b4e9cb2f6bfaaad9b9c0559
MD5 d40747b2b8e62b9e7c8742eacef9ec12
BLAKE2b-256 915484636fe1453e6481cff842a8b4b07d4f4147940efff28b5d0b94809b199e

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