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

Uploaded Source

Built Distributions

pytest_odoo-0.4.7-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

pytest_odoo-0.4.7-py2-none-any.whl (16.7 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: pytest-odoo-0.4.7.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.14

File hashes

Hashes for pytest-odoo-0.4.7.tar.gz
Algorithm Hash digest
SHA256 51878b4bfae1a9529244a069c8fd8ef8867033e8d03112735c2485956eeb11b7
MD5 959881532a9b929059bcd6c2d8635295
BLAKE2b-256 fb2c4095023acca163e16ff9acf11a8416690030f6b9ea3a5689caee62e20af5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytest_odoo-0.4.7-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.6

File hashes

Hashes for pytest_odoo-0.4.7-py3-none-any.whl
Algorithm Hash digest
SHA256 4db350d8c8bc412f41bd777055e837d0433912b25fa416bc0e8816420f995e15
MD5 defa6edda60a524cf82a9076cc0a3e2f
BLAKE2b-256 983987fd9deb4b481bdceab162cff1f3570c638f4b3dc7b24ec46b650b73b342

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytest_odoo-0.4.7-py2-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.14

File hashes

Hashes for pytest_odoo-0.4.7-py2-none-any.whl
Algorithm Hash digest
SHA256 30eb5e0387659e9fd06c01d88a8eeec11c8452a866f91d4bbd74062b2b70fdbb
MD5 f3e4d64f0dfae2a36f348b0f087154ef
BLAKE2b-256 3e644df3a6e12c467120b98a8e64bd8bd67d30bfbcf2df05859c009586652582

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