mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-13 12:15:10 +00:00
fix(test): remove php_phpactor symlink and add repo alias mapping
Remove the unnecessary php_phpactor -> php symlink. Instead, add a _LANGUAGE_REPO_ALIASES mapping in conftest.py so that variant language servers (PHP_PHPACTOR, PYTHON_JEDI, RUBY_SOLARGRAPH) resolve to their base language's test repository without needing filesystem symlinks. Addresses review comment on PR #1002.
This commit is contained in:
2 files changed
+9
-2
No files matched your search
+9
-1
@@ -34,8 +34,16 @@ class LanguageParamRequest:
|
||||
param: Language
|
||||
|
||||
|
||||
_LANGUAGE_REPO_ALIASES: dict[Language, Language] = {
|
||||
Language.PHP_PHPACTOR: Language.PHP,
|
||||
Language.PYTHON_JEDI: Language.PYTHON,
|
||||
Language.RUBY_SOLARGRAPH: Language.RUBY,
|
||||
}
|
||||
|
||||
|
||||
def get_repo_path(language: Language) -> Path:
|
||||
return Path(__file__).parent / "resources" / "repos" / language / "test_repo"
|
||||
repo_language = _LANGUAGE_REPO_ALIASES.get(language, language)
|
||||
return Path(__file__).parent / "resources" / "repos" / repo_language / "test_repo"
|
||||
|
||||
|
||||
def _create_ls(
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
php
|
||||
Reference in new issue
Block a user