"""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, wo_persistence @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. Phase 8: the WO # persistence module is loaded by the shared loader and reached via the # _wo_parser_support handle (no bare `import persistence`). fake = FakeDynamoResource() monkeypatch.setattr(wo_persistence, "dynamodb", fake) return fake