Skip to main content

Odoo Test Helper

Project description

License: AGPL-3 https://badge.fury.io/py/odoo-test-helper.svg

odoo-test-helper is toolbox for writing odoo test

Loading Fake models

Sometime you build an abstract module that can be use by many modules. In such case, if you want to test it with real records you need to register real models.

One solution is to create a module_test module with a little implementation that use your abstract model.

One other solution is define test only models and load them in tests. This lib makes this possible and easy.

Example

There is an example of test here:

This example load the class ResPartner from the file:

Real implementation case can be found in the following module

Contributor

History

This module is inspired of the following mixin code that can be found in OCA and shopinvader repository

Intial Authors are

Refactor/extraction have been done by

This refactor try to load all class correctly like Odoo does with the exact same syntax

Note this refactor/extraction have been done to fix the test of the following issue

https://github.com/shopinvader/odoo-shopinvader/pull/607

Changes

0.0.1

  • add fake module loader

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

odoo-test-helper-1.0.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

odoo_test_helper-1.0.0-py2.py3-none-any.whl (3.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file odoo-test-helper-1.0.0.tar.gz.

File metadata

  • Download URL: odoo-test-helper-1.0.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.7

File hashes

Hashes for odoo-test-helper-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1f24af62bce33f7dc19048e294c89a8e9d7ad113fef2730d13135b7f61cbbf1c
MD5 4d0e18ea63e7b8c1bc9cfea978698167
BLAKE2b-256 ef6a530dd1b5dd6e4effc694ed4959cc57bfec3e1aeb5e3dd8ccb29e42023c2d

See more details on using hashes here.

File details

Details for the file odoo_test_helper-1.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: odoo_test_helper-1.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.7

File hashes

Hashes for odoo_test_helper-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 dc081069da0681d42f8a5c8bd27ede1fbd442825b57704d058fe8a37a4fc3fd8
MD5 20f55445c3bb7c30c9108dd8ab57d1cb
BLAKE2b-256 0a00d210f1d4b1b711ed77736c82f5a6f14ad344e66e5604d15293728b982192

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