mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-06 18:16:40 +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
@@ -0,0 +1,19 @@
|
||||
import os
|
||||
|
||||
import pytest
|
||||
|
||||
from solidlsp import SolidLanguageServer
|
||||
from test.conftest import PYTHON_LANGUAGE_BACKENDS
|
||||
from test.solidlsp.util.diagnostics import assert_file_diagnostics
|
||||
|
||||
|
||||
@pytest.mark.python
|
||||
class TestPythonDiagnostics:
|
||||
@pytest.mark.parametrize("language_server", PYTHON_LANGUAGE_BACKENDS, indirect=True)
|
||||
def test_file_diagnostics(self, language_server: SolidLanguageServer) -> None:
|
||||
assert_file_diagnostics(
|
||||
language_server,
|
||||
os.path.join("test_repo", "diagnostics_sample.py"),
|
||||
("missing_user", "undefined_name"),
|
||||
min_count=2,
|
||||
)
|
||||
Reference in new issue
Block a user