mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-16 14:13:59 +00:00
Fixed diagnostics files uri handling, added low-level tests
This commit is contained in:
1 parent
d198d67a9f
commit
bd7e64e85a
91 files changed
+958
-72
No files matched your search
@@ -9,6 +9,7 @@ from solidlsp.ls_config import Language, LanguageServerConfig
|
||||
from solidlsp.ls_utils import SymbolUtils
|
||||
from solidlsp.settings import SolidLSPSettings
|
||||
from test.solidlsp.conftest import format_symbol_for_assert, has_malformed_name, request_all_symbols
|
||||
from test.solidlsp.util.diagnostics import assert_file_diagnostics
|
||||
|
||||
|
||||
@pytest.mark.groovy
|
||||
@@ -117,3 +118,12 @@ class TestGroovyLanguageServer:
|
||||
f"Found malformed symbols: {[format_symbol_for_assert(sym) for sym in malformed_symbols]}",
|
||||
pytrace=False,
|
||||
)
|
||||
|
||||
def test_file_diagnostics(self) -> None:
|
||||
assert self.language_server is not None
|
||||
assert_file_diagnostics(
|
||||
self.language_server,
|
||||
"src/main/groovy/com/example/DiagnosticsSample.groovy",
|
||||
(),
|
||||
min_count=1,
|
||||
)
|
||||
Reference in new issue
Block a user