Files
omnara-agent-monitor/conftest.py
Kartik Sarangmath 912b8e0472 reduces deps
2025-07-09 14:03:38 -07:00

24 lines
553 B
Python

"""Root-level pytest configuration and shared fixtures."""
import os
import pytest
# Set test environment
os.environ["ENVIRONMENT"] = "test"
os.environ["SENTRY_DSN"] = ""
@pytest.fixture(scope="session", autouse=True)
def test_environment():
"""Ensure test environment is set."""
original_env = os.environ.copy()
# Set test environment variables
os.environ["ENVIRONMENT"] = "test"
os.environ["SENTRY_DSN"] = ""
yield
# Restore original environment
os.environ.clear()
os.environ.update(original_env)