File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 1+ import json
12import os
23import sys
3- import json
4- import pytest
54from unittest .mock import AsyncMock , MagicMock , patch
5+ import pytest
66from pydantic import ValidationError
7- # pylint: disable=E402
87
8+ from src .backend .agents .agentutils import extract_and_update_transition_states
9+ from src .backend .models .messages import Step
10+ # pylint: disable=import-error
11+ # Environment and module setup
912sys .modules ["azure.monitor.events.extension" ] = MagicMock ()
1013
1114os .environ ["COSMOSDB_ENDPOINT" ] = "https://mock-endpoint"
1619os .environ ["AZURE_OPENAI_API_VERSION" ] = "2023-01-01"
1720os .environ ["AZURE_OPENAI_ENDPOINT" ] = "https://mock-openai-endpoint"
1821
19- from src .backend .models .messages import Step
20- from src .backend .agents .agentutils import extract_and_update_transition_states
22+ # Ensure imports are at the top
2123
2224
2325@pytest .mark .asyncio
You can’t perform that action at this time.
0 commit comments