def METHOD_NAME(
    self, mocker: MockerFixture, pipenv: bool, poetry: bool, tmp_path: Path
) -> None:
    """Test install_commands."""
    args = Mock(extend_pip_args=["--foo", "bar"], use_cache=True)
    mock_generate_install_command = Mock(return_value=["cmd"])
    mock_join = mocker.patch(f"{MODULE}.shlex_join", return_value="success")
    requirements_txt = tmp_path / "requirements.txt"
    project = Mock(
        args=args,
        cache_dir="cache_dir",
        pip=Mock(generate_install_command=mock_generate_install_command),
        pipenv=pipenv,
        poetry=poetry,
        requirements_txt=requirements_txt,
    )
    obj = PythonDockerDependencyInstaller(project, client=Mock())
    assert obj.install_commands == [mock_join.return_value]
    mock_generate_install_command.assert_called_once_with(
        cache_dir=obj.CACHE_DIR,
        no_deps=bool(pipenv or poetry),
        no_cache_dir=False,
        requirements=f"/var/task/{requirements_txt.name}",
        target=PythonDockerDependencyInstaller.DEPENDENCY_DIR,
    )
    mock_join.assert_called_once_with(
        mock_generate_install_command.return_value + args.extend_pip_args
    )