mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-14 10:19:02 +00:00
Improve handling of languages for which tests are disabled
adding Clojure to list of disabled languages (tests appear to fail randomly)
This commit is contained in:
1 parent
72d5f688d4
commit
7de68c09c3
7 files changed
+67
-21
No files matched your search
@@ -15,3 +15,7 @@ CLI_FAIL = _test_clojure_cli()
|
||||
TEST_APP_PATH = Path("src") / "test_app"
|
||||
CORE_PATH = str(TEST_APP_PATH / "core.clj")
|
||||
UTILS_PATH = str(TEST_APP_PATH / "utils.clj")
|
||||
|
||||
|
||||
def is_clojure_cli_available() -> bool:
|
||||
return not CLI_FAIL
|
||||
@@ -4,12 +4,13 @@ from serena.project import Project
|
||||
from solidlsp.ls import SolidLanguageServer
|
||||
from solidlsp.ls_config import Language
|
||||
from solidlsp.ls_types import UnifiedSymbolInformation
|
||||
from test.conftest import language_tests_enabled
|
||||
|
||||
from . import CLI_FAIL, CORE_PATH, UTILS_PATH
|
||||
from . import CORE_PATH, UTILS_PATH
|
||||
|
||||
|
||||
@pytest.mark.clojure
|
||||
@pytest.mark.skipif(CLI_FAIL, reason=f"Clojure CLI not available: {CLI_FAIL}")
|
||||
@pytest.mark.skipif(not language_tests_enabled(Language.CLOJURE), reason="Clojure tests are disabled")
|
||||
class TestLanguageServerBasics:
|
||||
@pytest.mark.parametrize("language_server", [Language.CLOJURE], indirect=True)
|
||||
def test_basic_definition(self, language_server: SolidLanguageServer):
|
||||
|
||||
Reference in new issue
Block a user