Enable ty rule 'unresolved-attribute' for test/

This commit is contained in:
Dominik Jain authored and Dominik Jain committed 2026-09-18 13:08:36 +02:00
1 parent 2a6deef838
commit 3ad4044c69
24 files changed
+67 -38

No files matched your search

@@ -125,6 +125,7 @@ class TestAngularLanguageServerBasics:
# +1 puts the cursor inside the identifier rather than on its leading boundary.
refs = language_server.request_references(src_path, coords.line, coords.col + 1)
ref_paths = {r.get("relativePath", "") for r in refs}
ref_paths = {p for p in ref_paths if p} # filter out any empty relativePath entries
assert any(p.endswith("app.component.html") for p in ref_paths), (
f"Expected references for setName to include its template callsite in app.component.html, got: {ref_paths}"
)
@@ -21,6 +21,7 @@ import time
import pytest
from solidlsp import SolidLanguageServer
from solidlsp.language_servers.angular_language_server import AngularLanguageServer
from solidlsp.ls_config import LanguageServerId
from solidlsp.ls_exceptions import SolidLSPException
from test.conftest import _create_ls
@@ -344,6 +345,7 @@ class TestAngularStartupCleanup:
with pytest.raises(RuntimeError, match="simulated ngserver init"):
ls.start()
assert isinstance(ls, AngularLanguageServer)
assert ls._ts_server is None, "TS companion was not cleared after startup failure"
assert ls._html_server is None, "HTML companion was not cleared after startup failure"