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

Uploaded Source

Built Distributions

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

Uploaded Python 3

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

Uploaded Python 2

File details

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

File metadata

  • Download URL: pytest-odoo-0.4.3.linux-x86_64.tar.gz
  • Upload date:
  • Size: 5.9 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-32-generic

File hashes

Hashes for pytest-odoo-0.4.3.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 d434ba88bd5b47ccd17d8a1dabf9c6deaba5a5c90d92f8476a2e48c2a6b5b330
MD5 799994c0163aae6c0d71888b3dec929c
BLAKE2b-256 4f626c2154008377197ec154dd44e9d3514db5d67c6cf62f979812e517dc77e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytest_odoo-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 5.9 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-32-generic

File hashes

Hashes for pytest_odoo-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0366127c135344c8dfd86e017124c3f20bab108474270f4428fec466789fa25b
MD5 5ded2eb6e6a285e5f5774a51db779255
BLAKE2b-256 766090f716e7f2903720319d902710af3b7d4640877180db902c1c9edf53156d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytest_odoo-0.4.3-py2-none-any.whl
  • Upload date:
  • Size: 5.9 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-32-generic

File hashes

Hashes for pytest_odoo-0.4.3-py2-none-any.whl
Algorithm Hash digest
SHA256 abac951d64d0a2d92f495aaeeb51016206435da84ef90e432953a1bb1fd6429c
MD5 03d59758564fdc2cf1e8ef32effe96a1
BLAKE2b-256 0f9e9c2ee525bdae392ef3f06bc1da854bb01d4602b49af3aa0d5838ef3a090f

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