mirror of
https://github.com/Sea-Haven-Industries/procurement-ingest.git
synced 2026-10-03 12:43:12 +00:00
18 lines
525 B
Python
18 lines
525 B
Python
|
|
"""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
|