mirror of
https://github.com/tiennm99/serena.git
synced 2026-07-16 10:17:42 +00:00
Refactoring: Remove names of methods moved to Project:
* search_files_for_pattern -> search_source_files_for_patterh * request_parsed_files -> gather_source_files
This commit is contained in:
committed by
Dominik Jain
parent
c4d89f21e7
commit
75436727d0
@@ -204,7 +204,7 @@ class TestLanguageServerBasics:
|
||||
class TestProjectBasics:
|
||||
@pytest.mark.parametrize("project", [Language.CLOJURE], indirect=True)
|
||||
def test_search_files_for_pattern(self, project: Project) -> None:
|
||||
result = project.search_files_for_pattern("defn.*greet")
|
||||
result = project.search_source_files_for_pattern("defn.*greet")
|
||||
|
||||
assert result is not None, "Pattern search should return results"
|
||||
assert len(result) > 0, "Should find at least one match for 'defn.*greet'"
|
||||
@@ -212,7 +212,7 @@ class TestProjectBasics:
|
||||
core_matches = [match for match in result if match.source_file_path and "core.clj" in match.source_file_path]
|
||||
assert len(core_matches) > 0, "Should find greet function in core.clj"
|
||||
|
||||
result = project.search_files_for_pattern(":require")
|
||||
result = project.search_source_files_for_pattern(":require")
|
||||
|
||||
assert result is not None, "Should find require statements"
|
||||
utils_matches = [match for match in result if match.source_file_path and "utils.clj" in match.source_file_path]
|
||||
|
||||
Reference in New Issue
Block a user