扫码关注官方订阅号
最近看flask的源码,发现项目下一个tests文件夹下里面都是测试相关的代码,但是我在这个文件夹所有py文件中都没有找打main入口,不知道要怎样才能把这些测试用例运行起来?
走同样的路,发现不同的人生
~ Where are the tests? Good that you're asking. The tests are in the tests/ folder. To run the tests use thepy.test testing tool: $ py.test
~ Where are the tests?
Good that you're asking. The tests are in the tests/ folder. To run the tests use thepy.test testing tool:
py.test
$ py.test
通过 pip 安装 pytest, 然后在运行 py.test.
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
通过 pip 安装 pytest, 然后在运行
py.test.