pytest skipping "getting started" test with async error #62
Labels
documentation
Improvements or additions to documentation
pytest-lsp
Issues affecting the pytest-lsp package
I'm seeing an error trying to run the sample server + test from the getting started docs. Specifically,
pytest
skips the test instead of running it.Re-creating
pytest
v7.3.2,pygls
v1.0.2 andpytest-lsp
v0.3.0server.py
andtest_server.py
from docspytest
Result:
Resolution (partial)
Marking the test as
async
meanspytest
runs it successfully:It still generates a warning though:
I think that's covered in a separate issue though.
Alternative Resolution
Rather than having to decorate every test as async, add a
pyproject.toml
:The test will then run as per docs (though still generates the warning).
HTH.
The text was updated successfully, but these errors were encountered: