Skip to content

returning error messages about custom options? #8609

Answered by The-Compiler
rvandegrift asked this question in Q&A
Discussion options

You must be logged in to vote

That's a feature of the underlying argparse module.

You could raise a pytest.UsageError instead, which will instead display:

$ pytest  --wooo=asdf
ERROR: asdf is not equal to wooo

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rvandegrift
Comment options

Answer selected by rvandegrift
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