mirror of
https://github.com/Sea-Haven-Industries/meal-order-manager.git
synced 2026-09-30 21:43:13 +00:00
50 tests covering pricing pipeline (Decimal rounding, clamping, totals), Google auth (enforcement, bypass prevention, audience/domain validation, 503 on outage), email slug generation, form status with reopen_at, input validation, Slack failure resilience, reminder dedup guards, order confirmation DMs, aggregated summaries, CSV generation, and mrkdwn escaping.
11 lines
403 B
Python
11 lines
403 B
Python
"""Pytest configuration — add shared layer source to sys.path so handler imports resolve."""
|
|
|
|
import os
|
|
import sys
|
|
|
|
# Add the shared layer source directory so `from shared.db import ...` works
|
|
# without requiring a real Lambda layer or .aws-sam build.
|
|
_shared_layer_dir = os.path.join(
|
|
os.path.dirname(__file__), os.pardir, "src", "shared"
|
|
)
|
|
sys.path.insert(0, os.path.abspath(_shared_layer_dir))
|