def METHOD_NAME(mock_repo, mock_search):
    # when
    upstream_commit = get_relevant_upstream_commit(mock_repo)
    # then
    assert upstream_commit == mock_repo.active_branch.tracking_branch.return_value.commit
    mock_search.assert_not_called()