Skip to content

Commit 440ca84

Browse files
author
Harmanpreet Kaur
committed
resolved issue
1 parent fda1e2f commit 440ca84

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/backend/tests/agents/test_agentutils.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1+
# pylint: disable=import-error, wrong-import-position
12
import json
23
import os
34
import sys
45
from unittest.mock import AsyncMock, MagicMock, patch
56
import pytest
67
from pydantic import ValidationError
78

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
9+
1110
# Environment and module setup
1211
sys.modules["azure.monitor.events.extension"] = MagicMock()
1312

@@ -19,7 +18,9 @@
1918
os.environ["AZURE_OPENAI_API_VERSION"] = "2023-01-01"
2019
os.environ["AZURE_OPENAI_ENDPOINT"] = "https://mock-openai-endpoint"
2120

22-
# Ensure imports are at the top
21+
22+
from src.backend.agents.agentutils import extract_and_update_transition_states
23+
from src.backend.models.messages import Step
2324

2425

2526
@pytest.mark.asyncio

0 commit comments

Comments
 (0)