async def METHOD_NAME(mock_execute, jp_fetch, jp_root_dir):
    # Given
    local_path = jp_root_dir / "test_path"
    url = "http://github.com/myid/myrepository.git"
    process_output = os.linesep.join(
        [f"origin\t{url} (fetch)", f"origin\t{url} (push)"]
    )
    mock_execute.return_value = maybe_future((0, process_output, ""))
    # When
    response = await jp_fetch(
        NAMESPACE,
        local_path.name,
        "remote",
        "show",
        method="GET",
    )
    # Then
    command = ["git", "remote", "-v", "show"]
    mock_execute.assert_called_once_with(
        command,
        cwd=str(local_path),
        timeout=20,
        env=None,
        username=None,
        password=None,
        is_binary=False,
    )
    assert response.code == 200
    payload = json.loads(response.body)
    assert payload == {
        "code": 0,
        "command": " ".join(command),
        "remotes": [
            {"name": "origin", "url": "http://github.com/myid/myrepository.git"}
        ],
    }