A pytest plugin for running Odoo tests. It integrates with Odoo's test framework, manages database creation, and handles module dependencies. Current version is 2.1.3, targeting Odoo 14+ with Python >=3.8.
pip install pytest-odooNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Minimal setup: set environment variables for Odoo database and run tests with pytest using the --odoo-* options.
Update to Odoo 14+ or pin to pytest-odoo==1.4.3 if necessary.
Use a separate database (e.g., test_db) and never point to a production database.
Replace with --odoo-xmlrpc-port or other supported options.