Fixed diagnostics files uri handling, added low-level tests

This commit is contained in:
Michael Panchenko authored and Dominik Jain committed 2026-04-29 23:52:26 +02:00
1 parent d198d67a9f
commit bd7e64e85a
91 files changed
+958 -72

No files matched your search

+2 -2
View File
@@ -13,8 +13,8 @@ def _test_clojure_cli() -> bool:
CLI_FAIL = _test_clojure_cli()
TEST_APP_PATH = Path("src") / "test_app"
CORE_PATH = str(TEST_APP_PATH / "core.clj").replace("\\", "/")
UTILS_PATH = str(TEST_APP_PATH / "utils.clj").replace("\\", "/")
CORE_PATH = str(TEST_APP_PATH / "core.clj")
UTILS_PATH = str(TEST_APP_PATH / "utils.clj")
def is_clojure_cli_available() -> bool:
@@ -0,0 +1,19 @@
import os
import pytest
from solidlsp import SolidLanguageServer
from solidlsp.ls_config import Language
from test.solidlsp.util.diagnostics import assert_file_diagnostics
@pytest.mark.clojure
class TestClojureDiagnostics:
@pytest.mark.parametrize("language_server", [Language.CLOJURE], indirect=True)
def test_file_diagnostics(self, language_server: SolidLanguageServer) -> None:
assert_file_diagnostics(
language_server,
os.path.join("src", "test_app", "diagnostics_sample.clj"),
("missing-greeting", "missing-consumer-value"),
min_count=2,
)