Im making a small test with hypothesis, while considering using it more extensively later.
I tried making my test get a param that is integer between 0 and 25. I did the following:
from hypothesis import given
from hypothesis.strategies import integers
@given(x=integers(0, 24))
def test_random(self, x):
print(x)
but x
was always set to 0, so I tried:
@given(x=integers(1, 24))
def test_random(self, x):
print(x)
and it was always set it to 1 showing that it always taking the min value. what am I doing wrong\where can i configure this to be random?
EDIT: hypothesis version: hypothesis==4.18.3