test(proxy): disable managed_agents driver in agent_session_endpoints conftest

This commit is contained in:
Ishaan Jaffer 2026-05-06 18:10:25 -07:00
parent 78c69ce273
commit 60af728673
No known key found for this signature in database

View file

@ -19,6 +19,12 @@ import pytest
# Set a JWT secret BEFORE any module under test is imported.
os.environ.setdefault("LITELLM_AGENT_JWT_SECRET", "test-agent-jwt-secret")
os.environ.setdefault("LITELLM_MASTER_KEY", "sk-1234")
# Existing endpoint tests assume the legacy daemon-driven path: a queued
# run stays queued until a daemon claims it. The new managed_agents
# in-process driver (see ``managed_agents_runner.py``) is opt-out per
# spec but defaults to on — disable it here so unit tests keep their
# original semantics. Per-test fixtures can re-enable it via monkeypatch.
os.environ.setdefault("LITELLM_DISABLE_MANAGED_AGENTS_RUN_DRIVER", "1")
from collections import defaultdict
from datetime import datetime, timezone