mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-16 00:15:18 +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
@@ -35,9 +35,9 @@ class TestMarkdownLanguageServerBasics:
|
||||
|
||||
# Verify that markdown headings are remapped from String to Namespace
|
||||
for symbol in all_symbols:
|
||||
assert (
|
||||
symbol["kind"] == SymbolKind.Namespace
|
||||
), f"Heading '{symbol['name']}' should have kind Namespace, got {SymbolKind(symbol['kind']).name}"
|
||||
assert symbol["kind"] == SymbolKind.Namespace, (
|
||||
f"Heading '{symbol['name']}' should have kind Namespace, got {SymbolKind(symbol['kind']).name}"
|
||||
)
|
||||
|
||||
@pytest.mark.parametrize("language_server", [Language.MARKDOWN], indirect=True)
|
||||
def test_markdown_request_symbols_from_guide(self, language_server: SolidLanguageServer) -> None:
|
||||
@@ -79,9 +79,9 @@ class TestMarkdownLanguageServerBasics:
|
||||
|
||||
for symbol in all_symbols:
|
||||
ls_symbol = LanguageServerSymbol(symbol)
|
||||
assert (
|
||||
not ls_symbol.is_low_level()
|
||||
), f"Heading '{symbol['name']}' should not be low-level (kind={SymbolKind(symbol['kind']).name})"
|
||||
assert not ls_symbol.is_low_level(), (
|
||||
f"Heading '{symbol['name']}' should not be low-level (kind={SymbolKind(symbol['kind']).name})"
|
||||
)
|
||||
|
||||
@pytest.mark.parametrize("language_server", [Language.MARKDOWN], indirect=True)
|
||||
def test_markdown_nested_headings_remapped(self, language_server: SolidLanguageServer) -> None:
|
||||
|
||||
Reference in new issue
Block a user