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

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -