Skip to content

sbeal/pytest-fixtures

 
 

Repository files navigation

pytest-fixtures README

VSCode extension to provide intellisense for Pytest Fixtures. Inspired by pytest-vscode. Uses pytest --fixtures to get fixture information.

Demo

demo

Features

  • Autocomplete suggestions for parameters of test functions where fixtures may be used. Includes docstrings. Context aware of different fixtures available for each file.
  • Go To Definition support. Uses pytest output to determine location of fixture.

Will first check "python.testing.pytestPath" for pytest, then will fallback on python -m pytest with the selected interpreter.

Requirements

  • Python
  • pytest
  • (Optionally) pytest-asyncio

Known Issues

  • Does not support typing of fixture parameters.
  • Python extension provides a self-referential definition of function parameters so there will be two definitions, see here

Release Notes

Change Log

About

Pytest fixtures autocomplete for vscode

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 93.3%
  • JavaScript 4.1%
  • Python 2.6%