-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconftest.py
More file actions
27 lines (23 loc) · 820 Bytes
/
conftest.py
File metadata and controls
27 lines (23 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
"""
Test configuration for agent tests.
"""
import sys
from pathlib import Path
import pytest
# Add the agents path
agents_path = Path(__file__).parent.parent.parent / "backend" / "v3" / "magentic_agents"
sys.path.insert(0, str(agents_path))
@pytest.fixture
def agent_env_vars():
"""Common environment variables for agent testing."""
return {
"BING_CONNECTION_NAME": "test_bing_connection",
"MCP_SERVER_ENDPOINT": "http://test-mcp-server",
"MCP_SERVER_NAME": "test_mcp_server",
"MCP_SERVER_DESCRIPTION": "Test MCP server",
"TENANT_ID": "test_tenant_id",
"CLIENT_ID": "test_client_id",
"AZURE_OPENAI_ENDPOINT": "https://test.openai.azure.com/",
"AZURE_OPENAI_API_KEY": "test_key",
"AZURE_OPENAI_DEPLOYMENT_NAME": "test_deployment"
}