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
评论列表
文章目录