Using pytest, I set specific parameters to fail as expected.
My testing suite uses hypothesis though. These is a bug that we know about that we don't intend to fix in this version of the API. It's already documented and the time it will takes to fix it is not worth the effort required at this time.
Helpfully, hypothesis points out this failure everytime the test suite runs and we've learned to ignore it. Obviously this is bad (especially because it's leading us to ignore other things that we shouldn't).
Is there a way to tell pytest to expect a hypothesis failure for a single parameter value? I don't want to remove it completely because there is a larger project on the horizon that should fix it. When that occurs, I want hypothesis to check this condition again.
A test case I want to apply this do is defined like so:
@given(inp=st.text(min_size=1))
def test_input(inp):
...
My goal is to be able to say that when inp
equals a specific value, expect a failure. Otherwise, this test should pass.