- Add tests/conftest.py with odoo_env fixture so pytest-bdd can access the pytest-odoo env fixture (fixes all 14 BDD scenario failures) - Fix send_notification_email() to use force_send=False so mail.mail records remain in queue for test assertions; pass res_id/model so tests can look up records by (res_id, model) pair - Fix test_generation_latency_under_30_seconds: replace raw SQL INSERT into ir_logging.body (column removed in Odoo 17) with _logger.info() Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
7 lines
152 B
Python
7 lines
152 B
Python
import pytest
|
|
|
|
|
|
@pytest.fixture
|
|
def odoo_env(env):
|
|
"""Re-export pytest-odoo's env fixture for use in pytest-bdd step definitions."""
|
|
return env
|