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

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -