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

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -

c# - Populating Gridview inside Listview ItemTemplate On Web User Control from Code Behind -