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
 
@@ -79,8 +79,8 @@ class _ChangesetsWithCommitsTestCaseixin
 
        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()
0 comments (0 inline, 0 general)