Stay Hungry,Stay Foolish!

摘要: 背景 pytest属于单元测试, 测试对象为模块函数, 对于argparse应用,需要带有参数进行测试的情况, 是否也可以将其对待为函数,带有测试的参数? 答案是可以的。 Example https://github.com/simonw/stream-delay/tree/0.1 例如, 此pac 阅读全文
posted @ 2022-10-28 23:59 lightsong 阅读(139) 评论(0) 推荐(0) 编辑
Life Is Short, We Need Ship To Travel