def METHOD_NAME(
    self,
    mocker: MockerFixture,
    tmp_path: Path,
) -> None:
    """Test export raise PoetryExportFailedError from CalledProcessError."""
    output = tmp_path / "expected" / "test.requirements.txt"
    mock_generate_command = mocker.patch.object(
        Pipenv, "generate_command", return_value="generate_command"
    )
    mock_run_command = mocker.patch.object(
        Pipenv,
        "_run_command",
        side_effect=subprocess.CalledProcessError(
            returncode=1,
            cmd=mock_generate_command.return_value,
        ),
    )
    with pytest.raises(PipenvExportFailedError):
        assert Pipenv(Mock(), tmp_path).export(output=output)
    mock_run_command.assert_called_once_with(
        mock_generate_command.return_value, suppress_output=True
    )