mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-14 06:17:58 +00:00
Refactoring in tests: prepare for testing with multiple languages
This commit is contained in:
1 parent
072b5caefb
commit
433d7f4d59
24 files changed
+103
-159
No files matched your search
@@ -5,8 +5,8 @@ it assumes that you already have a serena_config.yml file setup.
|
||||
"""
|
||||
|
||||
import json
|
||||
from pprint import pprint
|
||||
from pathlib import Path
|
||||
from pprint import pprint
|
||||
|
||||
from serena.agent import *
|
||||
|
||||
@@ -16,11 +16,11 @@ if __name__ == "__main__":
|
||||
agent = SerenaAgent(project_file_path=str(project_root / ".serena" / "project.yml"))
|
||||
overview_tool = agent.get_tool(GetSymbolsOverviewTool)
|
||||
find_symbol_tool = agent.get_tool(FindSymbolTool)
|
||||
|
||||
|
||||
print("Getting an overview of the util package\n")
|
||||
pprint(json.loads(overview_tool.apply("src/serena/util")))
|
||||
|
||||
|
||||
print("\n\n")
|
||||
|
||||
|
||||
print("Finding the symbol 'SerenaAgent'\n")
|
||||
pprint(json.loads(find_symbol_tool.apply("SerenaAgent")))
|
||||
pprint(json.loads(find_symbol_tool.apply("SerenaAgent")))
|
||||
Reference in new issue
Block a user