python vscode typehints for conftest fixtures

552 Views Asked by At

For my tests I defined a lot of fixtures and also added typehints to them. All of this fixtures are defined in the conftest.py and are "magically" available in all of the test :) But sadly vscode can't show information (signatures, typehints, etc) for this fixtures when used in my tests. Is there any way to enable this?

1

There are 1 best solutions below

0
On

Does this help: https://marketplace.visualstudio.com/items?itemName=nickmillerdev.pytest-fixtures ? This is a VS Code plugin which specifically demoes using conftest.py-defined fixtures in other test scripts.