Changeset - 20f32aebc974
[Not reviewed]
default
0 1 0
Lars Kruse - 8 years ago 2017-08-25 14:36:01
devel@sumpfralle.de
codingstyle: rename variable "hex" (conflicting with builtin)
1 file changed with 5 insertions and 5 deletions:
0 comments (0 inline, 0 general)
kallithea/tests/vcs/test_git.py
Show inline comments
 
@@ -273,9 +273,9 @@ class GitChangesetTest(unittest.TestCase
 
        the revision. This test is somewhat hard to write as order of tests
 
        is a key here. Written by running command after command in a shell.
 
        """
 
        hex = '2a13f185e4525f9d4b59882791a2d397b90d5ddc'
 
        self.assertTrue(hex in self.repo.revisions)
 
        chset = self.repo.get_changeset(hex)
 
        commit_id = '2a13f185e4525f9d4b59882791a2d397b90d5ddc'
 
        self.assertTrue(commit_id in self.repo.revisions)
 
        chset = self.repo.get_changeset(commit_id)
 
        self.assertTrue(len(chset.nodes) == 0)
 
        root = chset.root
 
        self.assertTrue(len(chset.nodes) == 1)
 
@@ -296,8 +296,8 @@ class GitChangesetTest(unittest.TestCase
 
        self.assertTrue(docs is chset.get_node('docs'))
 

	
 
    def test_nodes_with_changeset(self):
 
        hex = '2a13f185e4525f9d4b59882791a2d397b90d5ddc'
 
        chset = self.repo.get_changeset(hex)
 
        commit_id = '2a13f185e4525f9d4b59882791a2d397b90d5ddc'
 
        chset = self.repo.get_changeset(commit_id)
 
        root = chset.root
 
        docs = root.get_node('docs')
 
        self.assertTrue(docs is chset.get_node('docs'))
0 comments (0 inline, 0 general)