pytest_concurrent.py 文件源码

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

项目:pytest-concurrent 作者: reverbc 项目源码 文件源码
def record_testreport(self, testreport):
        assert not self.testcase
        names = mangle_test_address(testreport.nodeid)
        classnames = names[:-1]
        if self.xml.prefix:
            classnames.insert(0, self.xml.prefix)
        attrs = {
            "classname": ".".join(classnames),
            "name": bin_xml_escape(names[-1]),
            "file": testreport.location[0],
        }
        if testreport.location[1] is not None:
            attrs["line"] = testreport.location[1]
        if hasattr(testreport, "url"):
            attrs["url"] = testreport.url
        self.attrs = attrs
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号