def METHOD_NAME(
    patch_inventory,
    config: Config,
    tmp_path: Path,
    capsys,
    components,
    ckeys,
    exctext,
):
    patch_inventory.return_value = {
        config.inventory.bootstrap_target: {"parameters": components},
    }
    with pytest.raises(click.ClickException) as exc_info:
        _ = version_parsing._read_components(config, ckeys)
    assert exc_info.value.args[0] == exctext