22 lines
562 B
Python
22 lines
562 B
Python
"""Pytest configuration."""
|
|
|
|
import os
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
import pytest
|
|
|
|
# Add src directory to Python path
|
|
backend_dir = Path(__file__).parent.parent
|
|
src_dir = backend_dir / "src"
|
|
sys.path.insert(0, str(src_dir))
|
|
|
|
|
|
@pytest.fixture(scope="session", autouse=True)
|
|
def setup_test_env():
|
|
"""Set up test environment variables."""
|
|
os.environ["JWT_SECRET"] = "test-secret-key-for-testing-only"
|
|
os.environ["S3_ACCESS_KEY_ID"] = "test-access-key"
|
|
os.environ["S3_SECRET_ACCESS_KEY"] = "test-secret-key"
|
|
os.environ["APP_ENV"] = "dev"
|