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