Changeset - f200ce5efce6
[Not reviewed]
default
0 1 0
Mads Kiilerich - 8 years ago 2018-01-28 00:16:18
mads@kiilerich.com
Grafted from: 6e54e418d586
tests: enable disabled Git branch tests, with comments that the current results seem wrong
1 file changed with 7 insertions and 9 deletions:
0 comments (0 inline, 0 general)
kallithea/tests/vcs/test_git.py
Show inline comments
 
@@ -304,27 +304,25 @@ class TestGitChangeset(object):
 
                             .get_node('index.rst')
 

	
 
    def test_branch_and_tags(self):
 
        """
 
        # Those tests seem to show wrong results:
 
        # in Git, only heads have a branch - most changesets don't
 
        rev0 = self.repo.revisions[0]
 
        chset0 = self.repo.get_changeset(rev0)
 
        assert chset0.branch == 'master'
 
        assert chset0.branch is None # should be 'master'?
 
        assert chset0.tags == []
 

	
 
        rev10 = self.repo.revisions[10]
 
        chset10 = self.repo.get_changeset(rev10)
 
        assert chset10.branch == 'master'
 
        assert chset10.branch is None # should be 'master'?
 
        assert chset10.tags == []
 

	
 
        rev44 = self.repo.revisions[44]
 
        chset44 = self.repo.get_changeset(rev44)
 
        assert chset44.branch == 'web-branch'
 
        assert chset44.branch is None # should be 'web-branch'?
 

	
 
        tip = self.repo.get_changeset('tip')
 
        assert 'tip' in tip.tags
 
        """
 
        # Those tests would fail - branches are now going
 
        # to be changed at main API in order to support git backend
 
        pass
 
        assert 'tip' not in tip.tags # it should be?
 
        assert not tip.tags # how it is!
 

	
 
    def _test_slices(self, limit, offset):
 
        count = self.repo.count()
0 comments (0 inline, 0 general)