File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 44import pytest
55from unittest .mock import AsyncMock , MagicMock , patch
66from pydantic import ValidationError
7+ # pylint: disable=E402
78
8- # Mocking modules before importing them
99sys .modules ["azure.monitor.events.extension" ] = MagicMock ()
1010
11- # Set environment variables to mock Config dependencies before any import
1211os .environ ["COSMOSDB_ENDPOINT" ] = "https://mock-endpoint"
1312os .environ ["COSMOSDB_KEY" ] = "mock-key"
1413os .environ ["COSMOSDB_DATABASE" ] = "mock-database"
1716os .environ ["AZURE_OPENAI_API_VERSION" ] = "2023-01-01"
1817os .environ ["AZURE_OPENAI_ENDPOINT" ] = "https://mock-openai-endpoint"
1918
20- # Ensure used imports remain
2119from src .backend .models .messages import Step
2220from src .backend .agents .agentutils import extract_and_update_transition_states
2321
You can’t perform that action at this time.
0 commit comments