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

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: pytest-odoo-0.5.0.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.6

File hashes

Hashes for pytest-odoo-0.5.0.tar.gz
Algorithm Hash digest
SHA256 4b654c38ee33b1ccc1283effd8e4e033d8d725547725a8a7a52a3327ff6b0061
MD5 08cdb8d0709ac88cf73a175cdd6b7557
BLAKE2b-256 f589836c07bca17e6666983f052cfebfa25410f4605aded8962f797a2095a408

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytest_odoo-0.5.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.6

File hashes

Hashes for pytest_odoo-0.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ac329fe5c195f1e1d6275943ff7eafc1c8528f3e28e743a2102601c4a87c7e68
MD5 308f8e010cc75c055c658f180286f2c4
BLAKE2b-256 fe25b79072442fab155611578fc94395ac50d5b67c8c601bf98922497eefe64a

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