def _get_remotes(config): schemes = ( get_fs_cls(get_fs_config(None, config, name=remote)).scheme for remote in config["remote"] ) return ", ".join(schemes) or "None"
def test_get_fs_config(): with pytest.raises(RemoteNotFoundError): get_fs_config(None, {"remote": {}}, name="myremote")