python idiomatic way to deterministically test a function relying on random numbers generated inside the function

前端 未结 0 970
情歌与酒
情歌与酒 2020-12-13 02:25

I plan to use unittest package to write a test for my function below. How can I properly test the function with deterministic parameters and/or refactor to make this possibl

相关标签:
回答
  • 消灭零回复
提交回复
热议问题