I'm new to Hypothesis and I want to test a function which takes integer input from Hypothesis Strategy:
@given(strategy.integers(min_value=2, max_value=9))
def test_function(t):
#...
Hypothesis tests the function starting from min_value 2 to 9.
Is there a way I could reverse this? I want the test cases to start with t=9 instead of t=2.
Aucun commentaire:
Enregistrer un commentaire