async def METHOD_NAME():
    with patch("jupyterlab_git.git.execute") as mock_execute:
        # Given
        error_message = "remote: Invalid username or password.\r\nfatal: Authentication failed for 'test_repo'"
        mock_execute.return_value = maybe_future(
            (
                128,
                "",
                error_message,
            )
        )
        # When
        actual_response = await Git().fetch(
            path="test_path", auth={"username": "test_user", "password": "test_pass"}
        )
        # Then
        mock_execute.assert_called_once_with(
            ["git", "fetch", "--all", "--prune"],
            cwd="test_path",
            timeout=20,
            env={**os.environ, "GIT_TERMINAL_PROMPT": "1"},
            username="test_user",
            password="test_pass",
            is_binary=False,
        )
        assert {
            "code": 128,
            "command": "git fetch --all --prune",
            "error": error_message,
            "message": error_message,
        } == actual_response