Skip to content

Discussion on using custom parameters in pytest.main() #11857

Discussion options

You must be logged in to vote

This is expected behavior

The form without the equal sign must use 2 strings, one for the options name and one for the value

What you did is the equivalent of pytest "--my-option 0"

Use pytest.main(['--use_https', '0'])

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Fish-watching-the-sea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants