This repository was archived by the owner on Nov 10, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -19,24 +19,21 @@ def mock_collection():
1919
2020@pytest .fixture
2121def chroma_tool (mock_collection ):
22- with patch ('crewai_tools.tools.chroma_tool.chroma_search_tool.CHROMA_AVAILABLE' , True ):
23- return ChromaSearchTool (collection = mock_collection )
22+ return ChromaSearchTool (collection = mock_collection )
2423
2524
2625def test_tool_initialization (mock_collection ):
27- with patch ('crewai_tools.tools.chroma_tool.chroma_search_tool.CHROMA_AVAILABLE' , True ):
28- tool = ChromaSearchTool (collection = mock_collection , limit = 5 )
26+ tool = ChromaSearchTool (collection = mock_collection , limit = 5 )
2927
30- assert tool .collection == mock_collection
31- assert tool .limit == 5
32- assert tool .name == "ChromaSearchTool"
28+ assert tool .collection == mock_collection
29+ assert tool .limit == 5
30+ assert tool .name == "ChromaSearchTool"
3331
3432
3533def test_missing_collection ():
3634 """Test initialization fails without collection"""
37- with patch ('crewai_tools.tools.chroma_tool.chroma_search_tool.CHROMA_AVAILABLE' , True ):
38- with pytest .raises (Exception ):
39- ChromaSearchTool ()
35+ with pytest .raises (Exception ):
36+ ChromaSearchTool ()
4037
4138
4239def test_successful_search (chroma_tool ):
You can’t perform that action at this time.
0 commit comments