def test_flake8_compliance(cookies):
"""generated project should pass flake8"""
result = cookies.bake()
try:
sh.flake8(str(result.project))
except sh.ErrorReturnCode as e:
pytest.fail(e)
test_cookiecutter_generation.py 文件源码
python
阅读 16
收藏 0
点赞 0
评论 0
评论列表
文章目录