-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
from_schema
triggers filter_too_much
on a simple schema
#88
Comments
If you share the schema I can have a look! |
Here's how it looks in a repl session. If I don't disable the health checks, it doesn't manage to create any nontrivial examples before the checks kick in (usually).
|
OK, two things seem to be causing this:
(1) mostly fixes the problem; subsequent runs can eventually slow down again because of the way Hypothesis saves diverse (in this case, large and filter-prone) examples in the database. Using the |
Closed in 561a549, version 0.21.0 🚀 |
@Zac-HD great, thank you. |
I have a straightforward and fairly small json schema (about 20-30 fields that are booleans or strings, with no custom formats), and calling
from_schema
on that raises thefilter_too_much
check. What causes this and is there anything to be done to improve performance? How is something invalid generated in the first place with these fields? One output says 8 valid and 42 invalid examples were generated.The text was updated successfully, but these errors were encountered: