mirror of
https://github.com/Sea-Haven-Industries/procurement-ingest.git
synced 2026-10-01 20:33:11 +00:00
20 lines
526 B
Python
20 lines
526 B
Python
|
|
"""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):
|
||
|
|
import handler
|
||
|
|
|
||
|
|
fake = FakeDynamoResource()
|
||
|
|
monkeypatch.setattr(handler, "dynamodb", fake)
|
||
|
|
return fake
|