Exemplo n.º 1
0
def test_commit_log_history_pygit2(repository_with_merge_commits):
    """Test detection of commit log messages with PyGit2."""
    pytest.importorskip("pygit2")
    commits = _pygit2_commits('HEAD^^..HEAD', repository_with_merge_commits)
    assert commits.message == "Merge branch 'test'\n"
    assert commits.message == "master2\n"
    assert commits.message == "test\n"
def test_commit_log_history_pygit2(repository_with_merge_commits):
    """Test detection of commit log messages with PyGit2."""
    pytest.importorskip("pygit2")
    commits = _pygit2_commits('HEAD^^..HEAD', repository_with_merge_commits)
    assert commits.message == "Merge branch 'test'\n"
    assert commits.message == "master2\n"
    assert commits.message == "test\n"
Exemplo n.º 3
0
def test_merge_commit_detection_pygit2(repository_with_merge_commits):
    """Test detection of merge and non-merge commits with PyGit2."""
    pytest.importorskip("pygit2")
    commits = _pygit2_commits('HEAD^..', repository_with_merge_commits)
    first_commit, second_commit = commits
    assert _is_merge_commit(commits[0])
    assert not _is_merge_commit(commits[1])
def test_merge_commit_detection_pygit2(repository_with_merge_commits):
    """Test detection of merge and non-merge commits with PyGit2."""
    pytest.importorskip("pygit2")
    commits = _pygit2_commits('HEAD^..', repository_with_merge_commits)
    first_commit, second_commit = commits
    assert _is_merge_commit(commits[0])
    assert not _is_merge_commit(commits[1])