def METHOD_NAME(
    self,
    mocker: MockerFixture,
    tmp_path: Path,
) -> None:
    """Test export raise PoetryExportFailedError from CalledProcessError."""
    output = tmp_path / "expected" / "test.requirements.txt"
    mocker.patch.object(Poetry, "generate_command", return_value="generate_command")
    mock_run_command = mocker.patch.object(
        Poetry, "_run_command", return_value="_run_command"
    )
    with pytest.raises(PoetryExportFailedError) as excinfo:
        assert Poetry(Mock(), tmp_path).export(output=output)
    assert (
        excinfo.value.message
        == f"poetry export failed with the following output:\n{mock_run_command.return_value}"
    )