Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parametrize subtest #36

Open
jrieke opened this issue Dec 16, 2020 · 1 comment
Open

Parametrize subtest #36

jrieke opened this issue Dec 16, 2020 · 1 comment

Comments

@jrieke
Copy link

jrieke commented Dec 16, 2020

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).

@RonnyPfannschmidt
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants