-
Notifications
You must be signed in to change notification settings - Fork 586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@settings somehow conflates a broken test method with one that doesn't use @given #1978
Comments
|
I think I see what's happening. We return a special fake test method when you get the signature of (Side note: I don't like that error message) |
Agreed :) |
|
Hi, However, adding a flag would be more explicit + it won't affect code reading the Below is a link to illustrate what I mean. Below you will find the exception thrown with that change... it is still confusing, it almost seems like the message should read |
Actually, the message:
is appropriate here.
Reporting that |
(In some situations?)
@settingsthinks that a method hasn't been decorated withgiven, when instead the issue is simply a broken method signature. See below, where you'll notice I simply forgot to addxandyarguments to the test method itself:After adding them, all's fine:
Not sure I see how this is possible given https://github.com/HypothesisWorks/hypothesis/blob/master/hypothesis-python/src/hypothesis/_settings.py#L264 but maybe I'm missing something.
The text was updated successfully, but these errors were encountered: