mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-13 00:15:05 +00:00
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:
1 parent
45cd8ca12e
commit
0bbd9e375e
48 files changed
+278
-282
No files matched your search
@@ -149,9 +149,9 @@ class TestPowerShellLanguageServerBasics:
|
||||
|
||||
# Should find at least the call site in Main function
|
||||
assert refs is not None and len(refs) >= 1, f"Should find references to Greet-User, got {refs}"
|
||||
assert any(
|
||||
"main.ps1" in ref.get("uri", ref.get("relativePath", "")) for ref in refs
|
||||
), f"Should find reference in main.ps1, got {refs}"
|
||||
assert any("main.ps1" in ref.get("uri", ref.get("relativePath", "")) for ref in refs), (
|
||||
f"Should find reference in main.ps1, got {refs}"
|
||||
)
|
||||
|
||||
@pytest.mark.parametrize("language_server", [Language.POWERSHELL], indirect=True)
|
||||
def test_powershell_find_definition_across_files(self, language_server: SolidLanguageServer) -> None:
|
||||
@@ -166,9 +166,9 @@ class TestPowerShellLanguageServerBasics:
|
||||
definition_locations = language_server.request_definition(main_path, 98, 18)
|
||||
|
||||
# Should find the definition in utils.ps1
|
||||
assert (
|
||||
definition_locations is not None and len(definition_locations) >= 1
|
||||
), f"Should find definition of Convert-ToUpperCase, got {definition_locations}"
|
||||
assert any(
|
||||
"utils.ps1" in loc.get("uri", "") for loc in definition_locations
|
||||
), f"Should find definition in utils.ps1, got {definition_locations}"
|
||||
assert definition_locations is not None and len(definition_locations) >= 1, (
|
||||
f"Should find definition of Convert-ToUpperCase, got {definition_locations}"
|
||||
)
|
||||
assert any("utils.ps1" in loc.get("uri", "") for loc in definition_locations), (
|
||||
f"Should find definition in utils.ps1, got {definition_locations}"
|
||||
)
|
||||
Reference in new issue
Block a user