procurement-ingest/lambdas/po/email_processor/tests/conftest.py

18 lines
525 B
Python
Raw Normal View History

"""Pytest fixtures for the purchase-order email-processor suite.
Path/env setup and the reusable helpers live in ``_po_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 _po_parser_support import FakeDynamoResource, po_handler
@pytest.fixture
def fake_dynamo(monkeypatch):
fake = FakeDynamoResource()
monkeypatch.setattr(po_handler, "dynamodb", fake)
return fake