mirror of
https://github.com/Sea-Haven-Industries/meal-order-manager.git
synced 2026-09-30 04:13:12 +00:00
10 lines
397 B
Python
10 lines
397 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))
|