Skip to content

Specify fixture parameter in test function. #7642

@iakremnev

Description

@iakremnev

Problem

Suppose I have a parametrized fixture function defined in conftest.py, parameter types are classes defined in conftest.py as well. All this fixture does is instantiating class objects. I run several tests against all fixture instances, and then there's also a test I want to run against only one fixture specialization. What is the designed way to do this?

Original question at Stack Overflow with more details.

pytest==6.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: fixturesanything involving fixtures directly or indirectlytype: questiongeneral question, might be closed after 2 weeks of inactivity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions