Skip to content

Commit 542087c

Browse files
committed
fix: tests
1 parent 6bc612b commit 542087c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ee/hogai/tools/test/test_create_and_query_insight.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515

1616
from ee.hogai.context.context import AssistantContextManager
1717
from ee.hogai.graph.schema_generator.nodes import SchemaGenerationException
18-
from ee.hogai.tools.legacy_create_and_query_insight import (
18+
from ee.hogai.tools.create_and_query_insight import (
1919
INSIGHT_TOOL_FAILURE_SYSTEM_REMINDER_PROMPT,
20-
LegacyCreateAndQueryInsightTool,
20+
CreateAndQueryInsightTool,
2121
)
2222
from ee.hogai.utils.types import AssistantState
2323
from ee.hogai.utils.types.base import NodePath
@@ -45,7 +45,7 @@ def _create_tool(
4545

4646
context_manager = AssistantContextManager(team=self.team, user=self.user, config=config)
4747

48-
return LegacyCreateAndQueryInsightTool(
48+
return CreateAndQueryInsightTool(
4949
team=self.team,
5050
user=self.user,
5151
state=state,
@@ -240,14 +240,14 @@ async def test_is_editing_mode_classmethod(self):
240240
configurable={"contextual_tools": {AssistantTool.CREATE_AND_QUERY_INSIGHT.value: {}}}
241241
)
242242
context_manager_editing = AssistantContextManager(team=self.team, user=self.user, config=config_editing)
243-
self.assertTrue(LegacyCreateAndQueryInsightTool.is_editing_mode(context_manager_editing))
243+
self.assertTrue(CreateAndQueryInsightTool.is_editing_mode(context_manager_editing))
244244

245245
# Test with editing mode disabled
246246
config_not_editing = RunnableConfig(configurable={"contextual_tools": {}})
247247
context_manager_not_editing = AssistantContextManager(team=self.team, user=self.user, config=config_not_editing)
248-
self.assertFalse(LegacyCreateAndQueryInsightTool.is_editing_mode(context_manager_not_editing))
248+
self.assertFalse(CreateAndQueryInsightTool.is_editing_mode(context_manager_not_editing))
249249

250250
# Test with other contextual tools but not create_and_query_insight
251251
config_other = RunnableConfig(configurable={"contextual_tools": {"some_other_tool": {}}})
252252
context_manager_other = AssistantContextManager(team=self.team, user=self.user, config=config_other)
253-
self.assertFalse(LegacyCreateAndQueryInsightTool.is_editing_mode(context_manager_other))
253+
self.assertFalse(CreateAndQueryInsightTool.is_editing_mode(context_manager_other))

0 commit comments

Comments
 (0)