hypothesis tests do not work anymore
See original GitHub issueAs already noted in #69 the hypothesis
integration is broken currently.
I tracked it down and believe the cause lays in the way assertions are rewritten.
Because here in rewrite.py the code object is only the body of the function all associated functionality by @hypothesis.given
is lost. I assume this will be the same for all decorators that don’t directly return the function itself.
This can be reproduced with
from ward import test
from hypothesis import given, strategies
@test("hypothesis example")
@given(a=strategies.integers())
def _(a):
assert isinstance(a, int)
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
When Null Hypothesis Significance Testing Is Unsuitable for ...
We review these shortcomings and suggest that, after sustained negative experience, NHST should no longer be the default, dominant statistical ...
Read more >Planned Hypothesis Tests Are Not Necessarily Exempt ... - ERIC
Scientific research often involves testing more than one hypothesis at a time, which can inflate the probability that a Type I error (false...
Read more >9 Hypothesis Tests
The objective of hypothesis testing is to decide, based on sample information, if the alternative hypotheses is actually supported by the data. We...
Read more >Everything You Need To Know about Hypothesis Testing
Ideally, a hypothesis test fails to reject the null hypothesis when the effect is not present in the population, and it rejects the...
Read more >S.3 Hypothesis Testing | STAT ONLINE
In reviewing hypothesis tests, we start first with the general idea. ... If it is likely, then the researcher does not reject his...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah makes sense. Sadly I was very busy with my bachelor thesis but want to start contributing to
ward
in the next weeks 😃Thanks for the report. I should remove the Hypothesis integration stuff from the docs. That functionality isn’t included in test coverage and so shouldn’t be advertised as a feature.
I’m also open to pull requests to fix the integration and add test coverage around it. It’s a nice-to-have but I have very little time to work myself at the moment.