You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tests\multilspy\test_multilspy_python.py::test_multilspy_python_blackFAILED=================================================================================FAILURES=================================================================================_______________________________________________________________________test_multilspy_python_black________________________________________________________________________@pytest.mark.asyncioasyncdeftest_multilspy_python_black():
""" Test the working of multilspy with python repository - black """code_language=Language.PYTHONparams= {
"code_language": code_language,
"repo_url": "https://github.com/psf/black/",
"repo_commit": "f3b50e466969f9142393ec32a4b2a383ffbe5f23"
}
withcreate_test_context(params) ascontext:
lsp=LanguageServer.create(context.config, context.logger, context.source_directory)
assertisinstance(lsp, JediServer)
# All the communication with the language server must be performed inside the context manager# The server process is started when the context manager is entered and is terminated when the context manager is exited.# The context manager is an asynchronous context manager, so it must be used with async with.asyncwithlsp.start_server():
result=awaitlsp.request_definition(str(PurePath("src/black/mode.py")), 163, 4)
assertisinstance(result, list)
assertlen(result) ==1item=result[0]
assertitem["relativePath"] ==str(PurePath("src/black/mode.py"))
assertitem["range"] == {
"start": {"line": 163, "character": 4},
"end": {"line": 163, "character": 20},
}
result=awaitlsp.request_references(str(PurePath("src/black/mode.py")), 163, 4)
assertisinstance(result, list)
>assertlen(result) ==8EAssertionError: assert1==8E+where1=len([{'absolutePath': '.multilspy\\451905597f9045e08699f99b582e63f0\\black-f3b50e466969f9142393ec32a4b2a383ffbe5f23\\src\\black\\mode.py', 'range': {'end': {'character': 20, 'line': 163}, 'start': {'character': 4, 'line': 163}}, 'relativePath': 'src\\black\\mode.py', 'uri': 'file:///c:/.multilspy/451905597f9045e08699f99b582e63f0/black-f3b50e466969f9142393ec32a4b2a383ffbe5f23/src/black/mode.py'}])
tests\multilspy\test_multilspy_python.py:46: AssertionError----------------------------------------------------------------------------Capturedlogcall-----------------------------------------------------------------------------INFOmultilspy:multilspy_logger.py:56 {"time": "2025-03-29 11:21:21", "level": "INFO", "caller_file": "multilspy\\tests\\..\\src\\multilspy\\language_servers\\jedi_language_server\\jedi_server.py", "caller_name": "start_server", "caller_line": 99, "message": "Starting jedi-language-server server process"}
INFOmultilspy:multilspy_logger.py:56 {"time": "2025-03-29 11:21:21", "level": "INFO", "caller_file": "multilspy\\tests\\..\\src\\multilspy\\language_servers\\jedi_language_server\\jedi_server.py", "caller_name": "start_server", "caller_line": 103, "message": "Sending initialize request from LSP client to LSP server and awaiting response"}
=========================================================================shorttestsummaryinfo==========================================================================FAILEDtests\multilspy\test_multilspy_python.py::test_multilspy_python_black-AssertionError: assert1==8
The text was updated successfully, but these errors were encountered:
Not sure what's the exact cause but running with black installed on the system makes test fail.
Full error:
The text was updated successfully, but these errors were encountered: