pytest_reportingserver.py 文件源码

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

项目:taf 作者: taf3 项目源码 文件源码
def _get_build_info(self, item=None):
        """Get info about build.

        Args:
            item(pytest.Item): test case item

        Returns:
            dict{"platform": str, "build": str}: build info

        """

        if item is not None and item.config and hasattr(item.config, 'env')\
                and item.config.env and "chipName" in item.config.env.env_prop \
                and "switchppVersion" in item.config.env.env_prop and self.platform == 'undetermined':
            self.platform = item.config.env.env_prop["chipName"]
            self.build = item.config.env.env_prop["switchppVersion"]
        return {'platform': self.platform, 'build': self.build}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号