mirror of
https://github.com/tiennm99/serena.git
synced 2026-09-03 06:19:21 +00:00
Adjusted test
This commit is contained in:
@@ -92,7 +92,7 @@ class TestSerenaAgent:
|
||||
# sel_start = def_symbol["location"]["selectionRange"]["start"]
|
||||
# Now find references
|
||||
find_refs_tool = agent.get_tool(FindReferencingSymbolsTool)
|
||||
result = find_refs_tool.apply(def_file, loc["line"], loc["column"])
|
||||
result = find_refs_tool.apply(name_path=def_symbol["name_path"], relative_file_path=loc["relative_path"])
|
||||
refs = json.loads(result)
|
||||
assert any(
|
||||
ref["location"]["relative_path"] == ref_file for ref in refs
|
||||
|
||||
Reference in New Issue
Block a user