python - Generate List of Random Objects with Hypothesis -
i need test function in python takes list type of data, integers strings object user makes up. there way in hypothesis generate list random objects? know generate list of random floats with
@given(strategies.lists(strategies.floats()))
and on , forth integers, chars, etc. how can make random list has more 1 data type it?
"hypothesis.strategies.one_of(*args)
: return strategy generates values of argument strategies."
will work you?
Comments
Post a Comment