Skip to content

Create a LSP to interact with pytest fixtures #13632

@entropitor

Description

@entropitor

What's the problem this feature will solve?

Users can:

  • go to the source of a fixture from a test
  • get auto-complete for available fixtures (include type annotation) when typing in the arguments of a test function / fixture

And this in all IDEs

Describe the solution you'd like

A custom LSP that could be used in all editors that has the above features (or a subset to begin with). Exposing pytest --fixtures and pytest --fixtures-per-test to the IDEs

Alternative Solutions

Each editor could build manual script for these features using the above 2 commands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions