Skip to content

Commit

Permalink
Fix F811 redefinition
Browse files Browse the repository at this point in the history
  • Loading branch information
evelynmitchell committed Dec 19, 2024
1 parent 41ad7ca commit e011ac9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/agents/test_agent_logging.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
"""
Unit tests for the Agent logging functionality.
"""

from unittest.mock import MagicMock
import unittest
from swarms.structs.agent import Agent
from swarms.tools.tool_parse_exec import parse_and_execute_json

# Mock parse_and_execute_json for testing
parse_and_execute_json = MagicMock()
parse_and_execute_json.return_value = {
mock_parse_and_execute_json = MagicMock()
mock_parse_and_execute_json.return_value = {
"tool_name": "calculator",
"args": {"numbers": [2, 2]},
"output": "4",
Expand Down

0 comments on commit e011ac9

Please sign in to comment.