test_keys.py 文件源码

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

项目:wheel 作者: pypa 项目源码 文件源码
def wheel_keys(tmpdir, monkeypatch):
    def load(*args):
        return [config_path.dirname]

    def save(*args):
        return config_path.dirname

    config_path = tmpdir.join('config.json')
    config_path.write(b'')

    monkeypatch.setattr(keys, 'load_config_paths', load)
    monkeypatch.setattr(keys, 'save_config_path', save)

    wk = keys.WheelKeys()
    wk.CONFIG_NAME = config_path.basename
    return wk
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号