Skip to content

Can we customize names for pytest parameters in test explorer? #21153

Closed Answered by brettcannon
dciborow asked this question in Q&A
Discussion options

You must be logged in to vote

This is technically a pytest question and not a Python extension question, but it looks like you're setting the id parameter for your parametrized tests. See https://docs.pytest.org/en/7.3.x/reference/reference.html#pytest.Metafunc.parametrize and/or https://docs.pytest.org/en/7.3.x/reference/reference.html#pytest-param for how set the ID explicitly.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by brettcannon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants