def check_project_result(result):
"""
Method to common project baking verification
"""
assert result.exit_code == 0
assert result.exception is None
assert result.project.isdir()
# Check project with flake8
try:
sh.flake8(str(result.project))
except sh.ErrorReturnCode as e:
pytest.fail(e)
test_cookiecutter.py 文件源码
python
阅读 17
收藏 0
点赞 0
评论 0
评论列表
文章目录