Skip to content

Commit 3b62235

Browse files
committed
refactor: move responses import to module level in tests
Remove import from inside function body for better code organization
1 parent 128be1d commit 3b62235

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_meta_tools.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Tests for meta tools functionality"""
22

33
import pytest
4+
import responses
45

56
from stackone_ai import StackOneTool, Tools
67
from stackone_ai.meta_tools import ToolIndex, create_meta_execute_tool, create_meta_filter_tool
@@ -209,8 +210,6 @@ def test_execute_tool_call(self, tools_collection):
209210
execute_tool = create_meta_execute_tool(tools_collection)
210211

211212
# Mock the actual tool execution by patching the requests
212-
import responses
213-
214213
with responses.RequestsMock() as rsps:
215214
rsps.add(
216215
responses.GET,

0 commit comments

Comments
 (0)