coveralls.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:flash_services 作者: textbook 项目源码 文件源码
def format_build(cls, build):
        """Re-format the build data for the front-end.

        Arguments:
          build (:py:class:`dict`): The JSON data from the response.

        Returns:
          :py:class:`dict`: The re-formatted data.

        """
        coverage = build.get('covered_percent')
        message = build.get('commit_message')
        return dict(
            author=build.get('committer_name') or '<no author>',
            committed=occurred(build.get('created_at')),
            coverage=None if coverage is None else '{:.1f}%'.format(coverage),
            message_text=remove_tags(message) if message else None,
            raw_coverage=coverage,
        )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号