mirror of
https://github.com/Sea-Haven-Industries/proposal-system.git
synced 2026-09-30 06:33:13 +00:00
20 lines
824 B
Python
20 lines
824 B
Python
|
|
"""Common fixtures for Lambda tests."""
|
||
|
|
|
||
|
|
import pytest
|
||
|
|
|
||
|
|
|
||
|
|
@pytest.fixture(autouse=True)
|
||
|
|
def _env_setup(monkeypatch):
|
||
|
|
"""Set environment variables required by all Lambdas."""
|
||
|
|
monkeypatch.setenv("AWS_DEFAULT_REGION", "us-east-1")
|
||
|
|
monkeypatch.setenv("AWS_ACCESS_KEY_ID", "testing")
|
||
|
|
monkeypatch.setenv("AWS_SECRET_ACCESS_KEY", "testing")
|
||
|
|
monkeypatch.setenv("AWS_SECURITY_TOKEN", "testing")
|
||
|
|
monkeypatch.setenv("AWS_SESSION_TOKEN", "testing")
|
||
|
|
monkeypatch.setenv("LOG_LEVEL", "DEBUG")
|
||
|
|
monkeypatch.setenv("GENERATED_BUCKET", "test-generated-pdfs")
|
||
|
|
monkeypatch.setenv("API_BASE_URL", "http://localhost:5000")
|
||
|
|
monkeypatch.setenv("INTERNAL_API_KEY_SECRET_ARN", "")
|
||
|
|
monkeypatch.setenv("KNOWLEDGE_BASE_ID", "")
|
||
|
|
monkeypatch.setenv("MODEL_ID", "us.anthropic.claude-sonnet-4-5-20250929-v1:0")
|