会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
py-zhq
博客园
首页
新随笔
联系
订阅
管理
2022年6月17日
内部 fixture capsys
摘要: 读取并返回到目前为止捕获的输出,重置内部缓冲区。 返回 将捕获的内容作为具有out和err 字符串属性的命名元组。 def test_output(capsys): print("hello") captured = capsys.readouterr() assert captured.out =
阅读全文
posted @ 2022-06-17 14:03 zhq9
阅读(31)
评论(0)
推荐(0)
编辑
公告