Skip to content
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

example() method yields too simple values in strategies #3182

Closed
matmarczak opened this issue Dec 7, 2021 · 0 comments · Fixed by #3189
Closed

example() method yields too simple values in strategies #3182

matmarczak opened this issue Dec 7, 2021 · 0 comments · Fixed by #3189
Assignees
Labels
legibility make errors helpful and Hypothesis grokable

Comments

@matmarczak
Copy link

Hi!

Thanks for the library, it looks promising to newcomer :)

I was just learning your API and found that results of example() call are really too simple. Noticed the issue when playing with recursive strategy. Given the code from docs and lot of samples I haven't really seen something more complex than {'':[None]}, most of values are simply {}, None or [], there are very few floats as well.

I understand its simplified to be more informative but currently its simplified to the extent that wasn't much helpful. At the end I used given() decorator and results were as expected.

@matmarczak matmarczak changed the title example() method yields too simple values in strategies example() method yields too simple values in strategies Dec 7, 2021
@Zac-HD Zac-HD added the legibility make errors helpful and Hypothesis grokable label Dec 7, 2021
@Zac-HD Zac-HD self-assigned this Dec 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legibility make errors helpful and Hypothesis grokable
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants