diff --git a/test/solidlsp/elixir/test_elixir_integration.py b/test/solidlsp/elixir/test_elixir_integration.py index d7a36b1..8478332 100644 --- a/test/solidlsp/elixir/test_elixir_integration.py +++ b/test/solidlsp/elixir/test_elixir_integration.py @@ -10,6 +10,7 @@ from pathlib import Path import pytest +from serena.project import Project from solidlsp import SolidLanguageServer from solidlsp.ls_config import Language @@ -111,11 +112,11 @@ class TestElixirIntegration: class TestElixirProject: @pytest.mark.parametrize("project", [Language.ELIXIR], indirect=True) - def test_comprehensive_symbol_search(self, project): + def test_comprehensive_symbol_search(self, project: Project): """Test comprehensive symbol search across the entire project.""" # Search for all function definitions function_pattern = r"def\s+\w+\s*[\(\s]" - function_matches = project.search_files_for_pattern(function_pattern) + function_matches = project.search_source_files_for_pattern(function_pattern) # Should find functions across multiple files if function_matches: @@ -131,7 +132,7 @@ class TestElixirProject: # Search for struct definitions struct_pattern = r"defstruct\s+\[" - struct_matches = project.search_files_for_pattern(struct_pattern) + struct_matches = project.search_source_files_for_pattern(struct_pattern) if struct_matches: # Should find structs primarily in models.ex @@ -139,11 +140,11 @@ class TestElixirProject: assert len(models_structs) > 0, "Should find struct definitions in models.ex" @pytest.mark.parametrize("project", [Language.ELIXIR], indirect=True) - def test_protocol_and_implementation_understanding(self, project): + def test_protocol_and_implementation_understanding(self, project: Project): """Test that the language server understands Elixir protocols and implementations.""" # Search for protocol definitions protocol_pattern = r"defprotocol\s+\w+" - protocol_matches = project.search_files_for_pattern(protocol_pattern, paths_include_glob="**/models.ex") + protocol_matches = project.search_source_files_for_pattern(protocol_pattern, paths_include_glob="**/models.ex") if protocol_matches: # Should find the Serializable protocol @@ -152,7 +153,7 @@ class TestElixirProject: # Search for protocol implementations impl_pattern = r"defimpl\s+\w+" - impl_matches = project.search_files_for_pattern(impl_pattern, paths_include_glob="**/models.ex") + impl_matches = project.search_source_files_for_pattern(impl_pattern, paths_include_glob="**/models.ex") if impl_matches: # Should find multiple implementations