Changeset - 5c0dc6fe1e40
[Not reviewed]
default
0 1 0
Branko Majic (branko) - 8 years ago 2018-02-11 00:14:52
branko@majic.rs
tests: Use better/more logical assertion when testing creation of new branches
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
kallithea/tests/vcs/test_changesets.py
Show inline comments
 
@@ -76,14 +76,14 @@ class _ChangesetsWithCommitsTestCaseixin
 
            author=u'joe',
 
            branch='foobar',
 
        )
 
        assert 'foobar' in self.repo.branches
 
        assert foobar_tip.branch == 'foobar'
 
        # 'foobar' should be the only branch that contains the new commit
 
        branches = self.repo.branches.values()
 
        assert branches[0] != branches[1]
 
        branch_tips = self.repo.branches.values()
 
        assert branch_tips.count(str(foobar_tip.raw_id)) == 1
 

	
 
    def test_new_head_in_default_branch(self):
 
        tip = self.repo.get_changeset()
 
        self.imc.add(vcs.nodes.FileNode('docs/index.txt',
 
            content='Documentation\n'))
 
        foobar_tip = self.imc.commit(
0 comments (0 inline, 0 general)