You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ah, I think I know what's going on: when @settings is the innermost decorator we return a wrapper that raises the error if called; and @given knows how to retrieve the original test function. If you apply @example in between, it adds the data to that shim... and we forget to copy it back later.
So if you look at how those bits work in core.py a solution should emerge... Happy to give more detailed tips if that would help.
In the documentation of
hypothesis.given, it is explicitly stated:However,
examplemust come beforegiven. The below test should fail, however it passes without running the explicit example:Output:
The following change makes the test fail, as expected:
Platform: Ubuntu 18.04
Python: 3.6.8
Hypothesis: 4.42.3
The text was updated successfully, but these errors were encountered: