Пример #1
0
def test_get_current_head_hash(mocker):
    mocker.patch('git.objects.commit.Commit.name_rev',
                 'commit-hash branch-name')
    assert get_current_head_hash() == 'commit-hash'
def test_get_current_head_hash(mocker):
    mocker.patch('git.objects.commit.Commit.name_rev', 'commit-hash branch-name')
    assert get_current_head_hash() == 'commit-hash'
def test_get_current_head_hash(mocker):
    mocker.patch("git.objects.commit.Commit.name_rev",
                 "commit-hash branch-name")
    assert get_current_head_hash() == "commit-hash"
 def test_get_current_head_hash(self):
     self.assertEqual(get_current_head_hash(), 'commit-hash')