# HG changeset patch # User Lars Kruse # Date 1503664561 -7200 # Node ID 20f32aebc9746d0f45bd2edcb6382dcdca463117 # Parent 016481e43341abc3f8bc8f221e6abd24ab73df0c codingstyle: rename variable "hex" (conflicting with builtin) diff -r 016481e43341 -r 20f32aebc974 kallithea/tests/vcs/test_git.py --- a/kallithea/tests/vcs/test_git.py Fri Aug 25 14:35:46 2017 +0200 +++ b/kallithea/tests/vcs/test_git.py Fri Aug 25 14:36:01 2017 +0200 @@ -273,9 +273,9 @@ 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 @@ 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'))