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

Filter out hypothesis warnings #49

Merged
merged 1 commit into from
Apr 1, 2020
Merged

Conversation

domanchi
Copy link
Contributor

@domanchi domanchi commented Apr 1, 2020

In running these tests, I got really annoyed at the amount of unnecessary hypothesis warnings:

.../virtualenv_run/lib/python3.6/site-packages/hypothesis/strategies/_internal/strategies.py:273: NonInteractiveExampleWarning: The `.example()` met
hod is good for exploring strategies, but should only be used interactively.  We recommend using `@given` for tests - it performs better, saves and replays failures to avoid flakiness,
and reports minimal examples. (strategy: fixed_dictionaries({'business_id': builds(type_cast)}))
NonInteractiveExampleWarning,

Let's just filter them out.

@domanchi domanchi merged commit 561517c into master Apr 1, 2020
@domanchi domanchi deleted the filter-out-hypothesis-warnings branch April 3, 2020 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant