- odoo_env fixture: use request.getfixturevalue('env') instead of
direct env parameter injection — pytest-bdd cannot inject pytest-odoo
fixtures by name into conftest fixtures; getfixturevalue() bypasses
this limitation
- generate_email: use list-based API generate_email([res_id]) returning
{res_id: {field: value}} — Odoo 17 does not accept a bare int
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
conftest.py inside the addon directory causes pytest to import the
package directly (bypassing the odoo.addons.* namespace), triggering
an AssertionError in Odoo's metaclass. Moving the fixture to the
repo-root conftest.py avoids the import path issue.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Creates conftest.py that installs the addon before tests run via the
pytest_configure hook. Also fixes Dockerfile symlink path for Odoo 17
(no version subdirectory).
Create a session-scoped fixture that installs itsulu_blog_publisher and its
dependencies before test execution. This ensures the Odoo registry knows about
our models when tests run.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>