Reformat (minor, after replacing black with ruff)

Black dependency created a dependabot warning and couldn't be bumped since it collided with pathspec dependencies. Since ruff can also format, black is not needed. But we now have these small format changes, mostly in test files
This commit is contained in:
Michael Panchenko authored and Dominik Jain committed 2026-03-23 21:10:41 +01:00
1 parent 45cd8ca12e
commit 0bbd9e375e
48 files changed
+278 -282

No files matched your search

+6 -6
View File
@@ -63,9 +63,9 @@ class TestCSharpLanguageServer:
assert add_symbol is not None, "Could not find 'Add' method symbol in Program.cs"
sel_start = add_symbol["selectionRange"]["start"]
refs = language_server.request_references(file_path, sel_start["line"], sel_start["character"] + 1)
assert any(
"Program.cs" in ref.get("relativePath", "") for ref in refs
), "Program.cs should reference Add method (tried all positions in selectionRange)"
assert any("Program.cs" in ref.get("relativePath", "") for ref in refs), (
"Program.cs should reference Add method (tried all positions in selectionRange)"
)
@pytest.mark.parametrize("language_server", [Language.CSHARP], indirect=True)
def test_nested_namespace_symbols(self, language_server: SolidLanguageServer) -> None:
@@ -121,9 +121,9 @@ class TestCSharpLanguageServer:
# Check that we have reference in Models/Person.cs where Calculator.Subtract is called
# Note: New Roslyn version doesn't include the definition itself as a reference (more correct behavior)
assert any(
os.path.join("Models", "Person.cs") in ref_file for ref_file in ref_files
), "Should find reference in Models/Person.cs where Calculator.Subtract is called"
assert any(os.path.join("Models", "Person.cs") in ref_file for ref_file in ref_files), (
"Should find reference in Models/Person.cs where Calculator.Subtract is called"
)
assert len(refs) > 0, "Should find at least one reference"
# check for a second time, since the first call may trigger initialization and change the state of the LS