"""Pytest fixtures for the work-order email-processor suite. Path/env setup and the reusable helpers live in ``_wo_parser_support`` (a uniquely named module) so the test files never do ``from conftest import``, which would be ambiguous against the repo's top-level ``tests/conftest.py``. """ import pytest from _wo_parser_support import FakeDynamoResource @pytest.fixture def fake_dynamo(monkeypatch): # Phase 5: the dynamodb accessor cache lives on persistence.py now (the # module that owns save_work_order/save_event); patch it there. The attribute # name is unchanged ("dynamodb") -- only the module moved. import persistence fake = FakeDynamoResource() monkeypatch.setattr(persistence, "dynamodb", fake) return fake