def METHOD_NAME(
    self, cli_runner: "CliRunner", cli: "Typer", mocker: "MockerFixture", workspace, user
) -> None:
    mocker.patch("argilla.client.workspaces.Workspace.from_name", return_value=workspace)
    mocker.patch("argilla.client.users.User.from_name", return_value=user)
    mocker.patch("argilla.client.workspaces.Workspace.add_user", side_effect=RuntimeError)
    result = cli_runner.invoke(cli, "workspaces --name unit-test add-user unit-test")
    assert result.exit_code == 1
    assert "An unexpected error occurred when trying to add user to the workspace" in result.stdout