mirror of
https://github.com/aljazceru/dev-gpt.git
synced 2025-12-21 23:54:19 +01:00
🔎 feat: search api
This commit is contained in:
13
test/unit/test_tools.py
Normal file
13
test/unit/test_tools.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import os
|
||||
|
||||
from dev_gpt.options.generate.tools.tools import get_available_tools
|
||||
|
||||
|
||||
def test_all_tools():
|
||||
tool_lines = get_available_tools().split('\n')
|
||||
assert len(tool_lines) == 2
|
||||
|
||||
def test_no_search():
|
||||
os.environ['GOOGLE_API_KEY'] = ''
|
||||
tool_lines = get_available_tools().split('\n')
|
||||
assert len(tool_lines) == 1
|
||||
Reference in New Issue
Block a user