Skip to content
This repository was archived by the owner on Nov 11, 2025. It is now read-only.
This repository was archived by the owner on Nov 11, 2025. It is now read-only.

Parametrize subtest #36

Open
Open

Description

@jrieke

Is it in any way possible to parametrize a subtest with @pytest.mark.parametrize? I'm dynamically creating subtests for different templates that I need to check but it would be nice if I could insert values into those templates via parametrize. (Of course, I can also just pass them in as normal values, but pytests formatting with parametrize is nicer/easier to understand and debug).

Activity

  1. RonnyPfannschmidt commented on Dec 17, 2020

    @RonnyPfannschmidt
    Member

    no, subtests happen after parametrize - but you can pass the parameter values to subtest to make them known

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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