modootest
modootest (Modern Odoo Test Framework) is a pytest framework designed for Odoo 19 custom development. It helps developers test backend behavior safely, repeatably, and without manually rebuilding the entire Odoo test workflow for every change.
Why use modootest?
Custom Odoo development combines Python models, ORM behavior, permissions,
record rules, users, companies, and database transactions. Traditional Odoo
testing can require sharing a database, restarting the Odoo server, or upgrading
modules between changes. modootest makes this work more productive with a
focused RED → GREEN workflow and automatic transaction cleanup after each test.
What it provides
- Isolated Odoo transactions and managed cursors.
- Odoo environment, record factory, user, and company fixtures.
- Permission, record-rule, and multi-company test support.
- Query counting and query-budget assertions.
- HTTP request mocking and frozen time helpers.
- Change planning and impacted-test selection.
- Pytest-compatible execution and deterministic JSON output for tooling.
Typical use
Write a focused test for a model method, computed field, constraint, workflow,
permission rule, multi-company requirement, or backend integration. Run it to
confirm the expected RED result, implement the addon change, and run it again for
GREEN. modootest rolls back database changes after each test so tests remain
safe and repeatable.
Installation
Install modootest into the same Python environment that imports Odoo and runs
pytest:
python -m pip install modootest
Supported environment: Odoo 19 with Python 3.10–3.13. Odoo itself is not installed as a dependency; use your existing Odoo checkout and test database.
For complete setup instructions, fixtures, configuration, and test execution, read the GitHub README.
modootest does not replace browser, JavaScript, Owl, CSS, visual UI, or browser
tour tests. Those should use Odoo's frontend testing tools.
Licensed under the Mozilla Public License 2.0.
Metadata
Release files for modootest 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| modootest-1.0.0.tar.gz | 72.5 kB | Without provenance | Details for modootest-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| modootest-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for modootest-1.0.0-py3-none-any.whl |
Total release size: 157.0 kB
Release files / modootest-1.0.0.tar.gz
| Download URL | modootest-1.0.0.tar.gz |
|---|---|
| Size | 72.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
77544502a413448be8ae4742d96924be40a1c3d7734a3f1e8950951cffbda1f4
|
|
BLAKE2b-256 checksum How to use checksums |
9fc992a673b5946c94bf7feed36c8fd28ad4553b00e846dd22cf5f8d5d38b9c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"openSUSE Tumbleweed","version":"20260908","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / modootest-1.0.0-py3-none-any.whl
| Download URL | modootest-1.0.0-py3-none-any.whl |
|---|---|
| Size | 84.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7559c3d7e842ec1a09fddc812d3961e26234e49059ea510b4f76afa15a36339f
|
|
BLAKE2b-256 checksum How to use checksums |
26a3b8b4304a50ebf78df9819c296b27cb0edd4be4f1710109607b284c0c4bb1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"openSUSE Tumbleweed","version":"20260908","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for modootest 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.