Jedi recognizes fixtures from pytest itself and also my own fixtures defined in the same module or conftest.py. However, external pytest fixtures (such as mocker from pytest-mock or faker from Faker are not autocompleted. I first thought this is an issue with jedi itself, but apparently, it's not:
However, when I write the same test code in neovim with jedi-language-server attached to neovim LSP, this fixture is not autocompleted. I use default jedi-language-server settings.
I'd be happy to provide more details, if that helps with resolving the problem, but I don't know how to call jedi-language-server's API directly, so I'd need some pointers.
Jedi recognizes fixtures from
pytest
itself and also my own fixtures defined in the same module orconftest.py
. However, external pytest fixtures (such asmocker
frompytest-mock
orfaker
fromFaker
are not autocompleted. I first thought this is an issue withjedi
itself, but apparently, it's not:This does return expected autocompletions.
However, when I write the same test code in neovim with
jedi-language-server
attached to neovim LSP, this fixture is not autocompleted. I use defaultjedi-language-server
settings.I'd be happy to provide more details, if that helps with resolving the problem, but I don't know how to call jedi-language-server's API directly, so I'd need some pointers.