test_bug_spotter.py 文件源码

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

项目:gitmate-2 作者: GitMateIO 项目源码 文件源码
def generate_fake_bugspots(hotspot_files):
    @attr.s
    class BugspotsResult:
        filename = attr.ib(convert=str)

    class FakeBugspots:
        def __init__(self, *args, **kwargs):
            pass

        def get_hotspots(self):
            return [BugspotsResult(file) for file in hotspot_files]

    return FakeBugspots
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号