Skip to content

Commit fda1e2f

Browse files
author
Harmanpreet Kaur
committed
edit 3
1 parent 2c30ff4 commit fda1e2f

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/backend/tests/agents/test_agentutils.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1+
import json
12
import os
23
import sys
3-
import json
4-
import pytest
54
from unittest.mock import AsyncMock, MagicMock, patch
5+
import pytest
66
from 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
912
sys.modules["azure.monitor.events.extension"] = MagicMock()
1013

1114
os.environ["COSMOSDB_ENDPOINT"] = "https://mock-endpoint"
@@ -16,8 +19,7 @@
1619
os.environ["AZURE_OPENAI_API_VERSION"] = "2023-01-01"
1720
os.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

0 commit comments

Comments
 (0)