Commit graph

5 commits

Author SHA1 Message Date
58b9fdc097 fix: copy root conftest.py into image and harden email template tests
- Add COPY conftest.py to Dockerfile so the odoo_env fixture is
  available when pytest runs from /tmp/test (the WORKDIR)
- Rewrite 3 email template tests to use template.generate_email()
  instead of querying mail.mail directly — generate_email() is
  synchronous and reliable; mail.mail.subject rendering and res_id
  are not guaranteed in Odoo 17 TransactionCase tests

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-30 02:39:38 -04:00
421f65cda6 fix: auto-install addon via conftest for pytest-odoo
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).
2026-05-29 22:45:54 -04:00
fb97becedc fix: symlink addon into Odoo's addons path for pytest-odoo module registration
pytest-odoo requires models to be under odoo.addons.* to register properly.
Create /var/lib/odoo/addons/17.0 and symlink the addon there.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-05-29 22:21:34 -04:00
34647c3742 docs: add Kubernetes test infrastructure documentation
- Add comprehensive K8s test setup guide to CLAUDE.md (section 8)
- Document K8s architecture, Docker image requirements, and job execution
- Update ARCHITECTURE.md with CI/CD infrastructure details
- Fix Dockerfile to use python3 -m pip and proper non-root user handling
- Upgrade addon to Odoo 17.0 and update XML view syntax
2026-05-29 18:13:32 -04:00
43ee650326 Dockerfile for local testing 2026-05-29 14:53:09 -04:00