diff --git a/addons/itsulu_blog_publisher/tests/test_bdd_steps.py b/addons/itsulu_blog_publisher/tests/test_bdd_steps.py index 2758eb3..51e945d 100644 --- a/addons/itsulu_blog_publisher/tests/test_bdd_steps.py +++ b/addons/itsulu_blog_publisher/tests/test_bdd_steps.py @@ -24,16 +24,15 @@ scenarios('../features/notification_email.feature') # ================================================================= # @pytest.fixture -def ctx(): - """Mutable context bag shared between steps in one scenario.""" - return {} +def odoo_env(env): + """pytest-odoo's env fixture, re-exported for BDD step access.""" + return env @pytest.fixture -def odoo_env(request): - """Provide the Odoo environment from the TransactionCase if available, - or from the pytest-odoo plugin's odoo_env fixture.""" - return request.getfixturevalue('odoo_env') +def ctx(): + """Mutable context bag shared between steps in one scenario.""" + return {} # ================================================================= #