Skip to content

Asserting exception or return value (raises_or_returns(...)) #12878

Closed Answered by The-Compiler
plotski asked this question in Ideas
Discussion options

You must be logged in to vote

The docs already have something on that: Parametrizing tests - pytest documentation

But I agree with what's been said, I consider this an antipattern and would be -1 on adding a (rather tricky to understand) helper like that.

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by plotski
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
4 participants